From: Logan Capaldo Date: 2006-03-09T03:21:06+09:00 Subject: Re: unicode in ruby On Mar 8, 2006, at 1:13 PM, Richard Gyger wrote: > so, you guys are telling me a language developed since the year > 2000 doesn't support unicode strings natively? in my opinion, > that's a pretty glaring problem. > Ruby doesn't really support any strings natively. It just happens to have a bytevector class that acts a lot like a string ;) Having said that, have you tried: $KCODE="u" # Assumes the source file is encoded as UTF8, effects literal strings, regexps, etc. If your source file is UTF16 or some other non-UTF8 encoding you'll have to use iconv to get into UTF8 to compare with the literals in your source.