The Scenario

You are creating a Flash project that feeds text in from an external XML file. The text is currently in English but there is a requirement that the text be changed to other languages.

The Problem

You have added foreign characters such as é, ü or ß and they don’t show up in Flash.

The Solution

Follow these steps below and all should be well:

Ensure that your XML document is formatted as UTF-8. If you are using Coda, it’s simple enough.

and that is also has the correct XML declaration in the header: 

<?xml version=”1.0″ encoding=”UTF-8″ ?>

Ensure that you have a dynamic text box in Flash and that you have given it an instance name.

Ensure that the font you are using supports foreign characters.

Make sure that you embed the font and select the relevant glyphs. Use shift to select more than one set. It is also a good idea to manually add the specific characters that you need to embed. For example to add é on a Mac, hold down the Alt key and then the letter e. The accent will turn yellow and then press the e letter again. 


COMMENTS / 3 COMMENTS

[...] in tpl. …Outbound IVR and Voicemails | IVR Deconstructedheader(Content-type: text/xml); echo(n); Flash, XML and foreign characters- SizzlaBlogEnsure that your XML document is formatted as UTF-8. If you are using Coda, it's simple … and that [...]

xml header - StartTags.com on Mar 03 10 at 4:09 pm

Cheers for the great info – I loved reading it! I always love your blog. :)

Free Stuff on Dec 03 09 at 3:15 am

Added to my favourites list and added to my blogroll.

shower enclosures on Mar 31 10 at 1:32 pm

SPEAK / ADD YOUR COMMENT
Comments are moderated.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Additional comments powered by BackType

Return to Top

Flash, XML and foreign characters

FRESH / LATEST POSTS

TAG / CLOUD

1.1.4 addons AFC air API Apple Apps coda component dock firefox flash flcodr GMap google Google Maps growl hacks ie interface iPhone last.fm leopard locator Mac macbook Mac Info mashup microsoft minority report motion detection Music new OS os x PHP plugin Random Info SDK spotify stacks Uncategorized vista web 2.0 web design windows