F Wolff a écrit :
> Op Sondag 2008-02-10 skryf Olivier Ricordeau:
>> Hi list,
>>
>> I've set up pootle on a machine, and I'm having troubles with utf8 
>> encoding. I'm using the pootle-0.10.1-1 package provided by Debian's 
>> testing repository.
>> My .po files and my .pot are encoded in UTF-8, and special characters 
>> are not rendered well in the pootle interface. And when I edit strings 
>> and add special characters in the pootle interface, they are encoded in 
>> latin-1 (I guess), but not in UTF-8.
>>
>> So my question is: how can I tell pootle to handle files in UTF-8? It's 
>> critical for me to be able to get the strings in UTF-8.
>>
>> Cheers,
>> Olivier
>>
> 
> Hallo Olivier
> 
> Pootle and the Translate Toolkit should definitely be able to use your
> UTF-8 files - it is indeed the default encoding in most cases. I assume
> most Pootle servers at the moment use almost exclusively UTF-8 files.
> 
> Are you sure your file is encoded correctly in UTF-8 and that the header
> indicates that it is using UTF-8? (It should have the line in the header
> of the file "Content-Type: text/plain; charset=UTF-8\n". Also check the
> output of the "file" command.

Ok that was it. In my .po files I had a wrong encoding ("Content-Type: 
text/plain; charset=iso-8859-1\n"). My files were encoded in UTF-8, but 
the header didn't say so. This header was probably added by poedit or 
gtranslator and I missed it.

Thx a lot!

Olivier

> 
> If you are stuck, you can send me privately the files compressed with
> perhaps a small screenshot of the problem. I will try to have a look at
> it.
> 
> Keep well
> Friedel
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Translate-pootle mailing list
> Translate-pootle@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/translate-pootle
> 


-- 
- *Olivier RICORDEAU* -
  [EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to