From: David Vallner Date: 2006-08-19T06:46:43+09:00 Subject: Re: `cmd` and UTF-8 > Yes, I mean the return value. > > I can't use Iconv because the script should work with any locale. Until Ruby gets some non-basic Unicode support, I -think- you're stuck to iconv-ing. I don't think that even $KCODE='u' will detect user input locale and convert automatically, but only changes the behaviour of string manipulation code. I could be completely wrong though. You should be able to detect the current locale using the standard library, I haven't really done this though. Welcome to the world of text encoding, may whoever invented codepages burn in hell forever for that. David Vallner