Ryan Smith wrote:
> one chinese character show different code in two different machine.
> 
> machine A:  \243\244
> machine B:  \302\245

In hex those are: \xa3\xa4
                  \xc2\xa5

The first is not valid UTF-8. I suppose it might be UTF-16: U+A3A4 or 
U+A4A3 depending on little or big-endian. Or it could be some older 
proprietary Asian encoding.

The second of these could be UTF-8. If so it would be codepoint 165, the 
'yen' symbol. Or it could be U+C2A5 in UTF-16.
-- 
Posted via http://www.ruby-forum.com/.