From: "Erik E." Date: 2011-01-13T09:43:36+09:00 Subject: Re: String.strip with UTF-8 Cool, thanks for that! I can just gsub/gsub! it out now that I know what it is. zimbatm ... wrote in post #974462: > 2011/1/12 Erik E. : >> Thank you for quick reply David & Peter, I was upgrading Ruby to see if >> it made a difference, but I can see it's not a space now which explains >> why it didn't strip > > Yeah, it's the dreaded non-breaking space [1]. Unfortunately, somebody > thought it would be nice to map Alt+Space to this character on some > keymaps (like mine, which is Swiss-French). If you're on a mac, see my > solution here : > http://0x2a.im/2009/04/16/terminal-unicode-problem-2.html > > > > > [1]: https://secure.wikimedia.org/wikipedia/en/wiki/Non-breaking_space -- Posted via http://www.ruby-forum.com/.