From: James Gray Date: 2008-09-19T22:11:52+09:00 Subject: Re: How to clean an xml files from non-utf-8 chars? On Sep 19, 2008, at 8:00 AM, Krzysieq wrote: > Sill answer, but what is $KCODE ?? It's a global variable that affects how Ruby 1.8 handles characters. > And as You might have guessed, no, I haven't set it. Does your code run inside of a recent version of Rails? I'm just asking because it sets $KCODE for you. James Edward Gray II