Re: [poedit-users] Problems with special characters

Olivier Sannier <[email protected]> Wed, 14 Jan 2009 17:04:05 +0100
Newsgroups gmane.editors.poedit.user
Message-ID <[email protected]>
Johannes Mario Ringheim wrote:
> Vaclav Slavik skreiv:
>   
>>> Inspecting the .mo file with gedit, I find for example that "å" has 
>>> turned into "Ã¥", and any other special character scrambled likewise. 
>>>       
>> They're not "scrambled", they are encoded using UTF-8 -- which as you
>> admit below is exactly what you asked Poedit to do.
>>     
>
> First and foremost I of course meant "Inspecting the .po file", not .mo.
>
> Second, any other utf-8 textfile displays special characters like "å" 
> correctly in gedit (meaning "å" as "å", not "Ã¥"). When I write an "å" 
> in poedit I expect it to be "å" in the utf-8 encoded po file. It 
> appearently is not, so I get the idea that something is wrong.
>   
You should use a binary editor to see the bytes that are in the file.
Some editors use the BOM at the start of the file to see if it is UTF-8 
or not. And maybe poedit does not add one, or maybe it does and it 
confuses the text editor, but all in all, it's a display issue that you 
can sort out by using a binary editor.
> I've used utf-8 on the website, as mentioned in my reply to Olivier. 
> Otherwise the site works fine and displays special characters correctly.
>   
Maybe you are double encoding the UTF-8 stream, or double decoding, who 
knows, but it's most likely on your site that the problem resides.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Poedit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/poedit-users