Izidor Jerebic
1/16/2009 8:51:00 AM
I did not check, but probably you need to use utf8 strings, at least
for ruby 1.8
For encoding into utf8, you need to know what is your string's current
encoding, and then change the string into utf8 encoding. You can use
iconv() (google ruby iconv) for that change.
izidor
On 15.1.2009, at 0:48, Lyes Amazouz wrote:
> Hi everybody
>
> I'm trying to export some data in the Json format using the json_pure
> library
>
> I've well prepared my structure in my program and I used the
> generate method
> to get the Jon output. But, during the generation, an error occurs
> saying
> that it met a character that is not utf-8 encoded.?
>
> Do this mean that I'm obliged to give UTF-8 encoded strings in my
> objects to
> get my json output, and if it is the case, do you now good ruby utf-8
> encoding library to advise it to me?
>
> Thank you!
> --
> ===========
> | Lyes Amazouz
> | USTHB, Algiers
> ===========