From: Michel Demazure Date: 2010-08-24T22:35:13+09:00 Subject: Re: Nokogiri SAX parser encoding problem Michel Demazure wrote: > Ryan Davis wrote: >> >> What if you redirect nokogiri's output to a file and view it in whatever >> you entered the above string in? >> >> Chances are it is your terminal, not ruby. > > Yes, Ryan, you are right : writing to a utf-8 file gives the good > answer. > Alas, no ! This is strange : when writing to a file : 1. by luck, for the example I gave ("辿p辿e"), I get back "辿p辿e" correctly, 2. but when parsing "deuxi竪me", I get "竪me" (this was the initial bug I discovered in my app). This is not the first time I see the "grave accented e" giving trouble when scanning or parsing in ruby, whatever tool is used... _md -- Posted via http://www.ruby-forum.com/.