To: lablgtk at kaba.or.jp Subject: Re: Problems using the new view widget From: Remi Vanicat Date: Fri, 11 Apr 2003 17:24:32 +0200 In-Reply-To: <20030411161409.047b3143.maxence.guesdon at inria.fr> (Maxence Guesdon's message of "Fri, 11 Apr 2003 16:14:09 +0200") Message-ID: <87of3dqcpb.dlv at wanadoo.fr> References: <20030411152228.3a45a003.maxence.guesdon at inria.fr> <20030411154505.0a899eac.maxence.guesdon@inria.fr> <20030411161409.047b3143.maxence.guesdon@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Sender: Vanicat Remi Maxence Guesdon writes: >> > Am I missing something ? >> > In the example/text/text-demo.ml, my 'é' gives the same error when I add it >> > to a string inserted in the buffer. >> > >> > How can I display this kind of character ? It worked before :-( >> >> Ok, Thanks to Olivier Andrieu I read the README file :-) > > I tried to to as the README says, and used the function > Glib.Convert.locale_to_utf8 "ma lettre accentuée é" > > now I have another exception: > exception Glib.GError("Invalid byte sequence in conversion input") > > I had to change my LC_ALL to fr_FR to make it work. > Hope it will help someone in the future. well, you could have use Glib.Convert.convert "ma lettre accentuée é" ~to_codeset: "utf-8" ~from_codeset: "ISO-8859-1" but in that case, you don't look to locale... by the way, it best to leave LC_ALL untouched and to use LANG. -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat