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. Actually, in my project, I use the SAX parser to build complex ruby objects, which are marshaled to a file, and then used by a Shoes app. This app gets the wrong answer. The culprit may therefore be Marshal. I'll shift to YAML and report. _md -- Posted via http://www.ruby-forum.com/.