From: Daniel Berger Date: 2006-09-02T14:39:51+09:00 Subject: Re: Individual char values in a Unicode string Tim Bray wrote: > I'm trying to figure out how to use [] String or jconv or something to > figure out the actual code-point values in a Unicode/UTF-8 string. > For example, how can I write f such that > > f('t�����') ==> [ 0x74, 0xf6, 0x4e2d ] > > (hex just for clarity of course, I want numbers). > > -Tim > > 't�����'.unpack("U*") => [116, 246, 20013] Regards, Dan