Re: Encoding question - please help me

Luca Padovani <[email protected]> Fri, 13 Feb 2004 10:02:48 +0100
Newsgroups gmane.comp.gnome.gdome
Message-ID <1076662967.804.14.camel@giraffe>
Hi Alex,

On Thu, 2004-02-12 at 18:05, Alex Barros wrote: 
> 	I am trying to use the gdome_di_saveDocToFileEnc with the
> ISO-8859-1 encoding. My data does have western european chars, like ö
> and ä. When I run my app, I get an "output conversion failed due to conv
> error" and it doesn't save my file.Am I doing something wrong ? Can
> someone give me a hint ?

please bear in mind that any string communicated to/from gdome2 must
be/is encoded in utf8. This is the same choice done for libxml2. I
suspect you've created a string of ISO8859-1 characters, and since this
is an 8-bit encoding you've just passed that string to gdome2.  

If my guess is wrong try to post a small code fragment that we can run.

Cheers.
//Luca