From: Jian Lin Date: 2009-05-09T21:28:15+09:00 Subject: Re: converting UTF-8 to entities like 剛 Robert Dober wrote: > On Sat, May 9, 2009 at 2:04 PM, Jian Lin wrote: > sorry for a quite superficial answer, but can you use the unicode > switch for regexen in your Ruby Version. This seems to be the problem. > > Robert it really might be the 0 that is choking the regular expression match... if i use s.scan(/(.)(.)(.)(.)/s) then it works better but still not all characters are converted... but the way i have a solution using the byte processing ... in next post -- Posted via http://www.ruby-forum.com/.