From: Markus Fischer Date: 2011-04-30T17:59:33+09:00 Subject: Re: A Code Point's Tale: There and Back Again Hi, On 30.04.2011 06:12, Terry Michaels wrote: > This is probably obvious in the docs and I'm just missing it, but here > goes: So, I see there is str.each_codepoint, which I want to use in a > function to convert Unicode Strings to a list of Unicode code points. > But what can I do if I have a list of Unicode code points and want to > convert them back into a String? I think you can use Array#pack for that: $ irb ruby-1.9.2-p180 :001 > "f뀀oöbß".each_codepoint.to_a => [102, 45056, 111, 246, 98, 223] ruby-1.9.2-p180 :002 > "f뀀oöbß".each_codepoint.to_a.pack("U*") => "f뀀oöbß" cheers