View unanswered posts | View active topics



Reply to topic  [ 4 posts ] 
unicode - automatic detection of file encoding? 
Author Message
Member

Joined: Sun Dec 04, 2005 8:38 pm
Posts: 74
Location: London, UK
Reply with quote
Hi all,

I was very excited to see that FlashDevelop supports UTF-8 encoding - however it doesn't seem to detect a file's encoding automatically.

I used EditPlus to save an XML file as UTF-8 - but opening it in FlashDevelop just uses the standard encoding...

Any chance of adding auto-detect to the list?

Great work as always, this is a great editor.

- Nils.


Tue Jan 03, 2006 12:30 pm
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
Some text editors don't write the required encoding header (ie. Byte Order Mask - BOM). Maybe your editor was detecting the encoding using the XML header.

You can override the detected encoding in the main menu (it will not convert your text): File > Encoding

I you have a lot of files to convert, you may want to edit MainMenu.xml to add a shortcut for ANSII > UTF8 conversion.


Tue Jan 03, 2006 12:42 pm
Profile WWW
Member

Joined: Sun Dec 04, 2005 8:38 pm
Posts: 74
Location: London, UK
Reply with quote
Post 
Thanks, that's shed a bit more light on the whole thing. I guess the text editor doesn't write BOM, although there is no encoding tag in the XML declaration - so I don't know how it itself recognises the file as UTF-8.

It is great to see this in FlashDevelop!

cheers - Nils.


Tue Jan 03, 2006 12:59 pm
Profile WWW
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
nilsmillahn wrote:
Thanks, that's shed a bit more light on the whole thing. I guess the text editor doesn't write BOM, although there is no encoding tag in the XML declaration - so I don't know how it itself recognises the file as UTF-8.

So it probably inspects the text and try to recognize double-byte characters. However that's not a reliable solution IMHO.


Tue Jan 03, 2006 1:07 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.