Skip to main content
Inspiring
May 2, 2007
Question

Special Characters in imported HTML

  • May 2, 2007
  • 4 replies
  • 433 views
I've got a Flash piece where the user fills out a questionnaire, and based on their responses, they are shown a handful of recommendations. These recommendations are all separate HTML files that load into a scrolling text field as HTML text.

There is an English version and a Spanish version. The English version works fine.

In the Spanish version, on the other hand, we've got special characters such as accents over e's, tildes over n's, and so forth.

In the HTML, I've used codes for special characters, such as ñ for ñ. That didn't work. In the resulting recommendations, this code appears, not the ñ.

Then I tried just putting the special characters into the HTML, without the special code. That looks fine on my computer (Mac G5 running Firefox), but on Windows IE instead of the special characters, we get one of those diamond shapes with a "?" in the middle of it.

In my recommendations field, I have it set to embed all characters. The font is Verdana, which should include the special characters. Does anyone know if the display of special characters in Flash is possible, and how I would do it?
This topic has been closed for replies.

4 replies

Participating Frequently
May 3, 2007
add <?xml version="1.0" encoding="UTF-8"?> tag to 1st line of your xml, AND

save your xml file encoding as utf-8, if you are using notepad, try this:
- save as, change the encoding (the bottom field) to UTF-8

no worry about your file extension.

UTF-8 (8-bit Unicode Transformation Format) supports multiple languages.

good luck
paulpsd7Author
Inspiring
May 3, 2007
Also, would it make a difference if I changed my files to have a .xml extension?
paulpsd7Author
Inspiring
May 3, 2007
Thanks for that. However, you need to dumb it down a bit for me regarding UTF-8, as I'm not too familiar with setting text format types. How do I do it? That is, what exact line of code do I need?

So you know, I'm loading all these HTML files into an XML object in Flash. The files have a .htm extension, but really they each consist of a single xml tag, body_text, which contains HTML formatted text. So I'm wondering if I need to add a line of code into each of these files?
Participating Frequently
May 3, 2007
make sure all your loaded html files saved in unicode or utf-8 encoding.

refer this:

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid=1222000