Jan 17 2008

30-Second Flex 3.0 Localization MUST-READ.

Posted by Joe Rinehart at 4:04 PM
3 comments
- Categories: Flex

I apologize for the all caps.

I'm doing some internationalization work in Flex 3, and I wanted to save you the headache I just encountered.

If you define a .properties file where you have strings using localized characters (e.g., "EspaƱol"), you may wind up seeing those strings show up in Flex without their special characters, looking something like "Espa?ol."

Making a long story short, if you've got Flex Builder installed, make sure the file encoding (Preferences -> Content Types -> "Default encoding:") is set to UTF-8 as Flex expects! I've got Java development tools installed, so I had to modify the encoding of the Text -> Java Properties File type. It was ISO-something. Changing it to UTF-8 = all happy!

Comments

matthew horn

matthew horn wrote on 01/22/08 4:36 PM

Thanks for pointing this out. I will add a note to the documentation on L10N.
Tom Sobut

Tom Sobut wrote on 01/31/08 12:10 PM

I'd like to add my thanks to you for that tidbit as well.
Joao

Joao wrote on 03/05/08 1:46 PM

Hi,

Thanks for your post.
I did exactly like you described, but somehow the characters are still messed up.

Any hints?

Write your comment



(it will not be displayed)