From: 7stud -- Date: 2009-05-10T08:29:36+09:00 Subject: Re: converting UTF-8 to entities like 剛 Jian Lin wrote: > 7stud -- wrote: >> 7stud -- wrote: >> Whoops. With the 'm' switch: >> >> /..../m >> >> or >> >> /.{4}/m > > > the problem is that some characters are converted to the correct > 骼 etc, but some characters are not... you can try if you want... > just go to Google News and get a China, taiwan, or hk news headline. Then why do you insist that you are trying to match any 4 bytes? -- Posted via http://www.ruby-forum.com/.