On Aug 28, 2008, at 3:51 AM, Kless wrote:

> How to decode  a String type to Unicode?

$ ruby -KU -e 'p "R=E9sum=E9".unpack("U*")'
[82, 233, 115, 117, 109, 233]

> And, to encode Unicode to String?

$ ruby -KU -e 'p [82, 233, 115, 117, 109, 233].pack("U*")'
"R=E9sum=E9"

Hope that helps.

James Edward Gray II=