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 "<foo>deuxième</foo>", 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/.