From: Daniel Berger Date: 2007-12-12T04:30:18+09:00 Subject: Re: Convert 简体中文 in Chinese to 简体中文& On Dec 11, 10:39 am, Philip Brocoum wrote: > ¼òÌåÖÐÎÄ > > converts to > > 简体中文 > > using this utility:http://people.w3.org/rishida/scripts/uniview/conversion.php > > Is there a way that I can get Ruby to do this for me? string = "¼òÌåÖÐÎÄ" p string.unpack("U*").map{ |c| c = "&##{c};"}.join => "简体中文" I'm not sure what the " " is. Whitespace? Should be " " then. Regards, Dan