From: Brian Candler Date: 2011-08-19T00:17:44+09:00 Subject: Re: How to send utf8 data to remote computer in ruby 1.9.2 Bartosz DziewoƄski wrote in post #1017168: > - let me cite the relevant part: > >> Other languages, such as Java and Python, solve this problem by encodeing every > String that enters the language as UTF-8 (or UTF-16). [...] >> >> However, this solution does not work very well for the Japanese community. For a > variety of complicated reasons, Japanese encoding, such as SHIFT-JIS, > are not > considered to losslessly encode into UTF-8. As a result, Ruby has a > policy of not > attempting to simply encode any inbound String into UTF-8. Except that even ruby 1.9 cannot handle SHIFT-JIS (it's a stateful encoding) -- Posted via http://www.ruby-forum.com/.