Groups | Blog | Home
all groups > flash (macromedia) > february 2004 >

flash (macromedia) : XML and Foreign Characters


Echoblade
2/23/2004 11:58:14 PM
I've been trying to mess with foreign characters and Flash but I can't get XML
to send these characters to Flash and have them print right. I've tried all
headers I can find for different encodings. Anyone know how to get around this

Thanks
Echoblade
2/24/2004 5:32:54 AM
French Characters [b]?,?,?....[/b]

this is what I'm current;y saying in XML
<?xml version="1.0" encoding="windows-1252"?>
<french>imper?mable</french>

I've also tried using &#130; instead of ?. All I get is a box character.

thanks
Laiverd.COM
2/24/2004 10:31:22 AM
Remember to not only put in the right header but also make sure the file is
saved a s UTF-8; any texteditor like notepad should be able to do that. You
could also do it in dreamweaver by setting the default fileformat for new
xml-files to be UTF-8.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Laiverd.COM
2/24/2004 10:33:12 AM
Oh; one more thing; make sure the font u use to display the characters
actually contains outlines for those characters. You can bet your *ss that a
lot of freefonts will simply NOT contain outlines for those characters. So
check the characterset of the font u use. If it's a system font, this should
not be a problem though.

John
--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

urami_
2/24/2004 11:31:56 AM

[quoted text, click to view]

what characters and what encoding have you try ?
I use it w/o problem , tho you might have characters that are not supported.
Can you provide details please .




Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>

Echoblade
2/24/2004 2:20:27 PM
thanks you 2, got it to work something funny though, I can use the character ? but not &#130; heh oh well

LeCompt
2/25/2004 1:45:16 AM
i have encountered a similar problem before.

it seems that Flash is not reliable when parsing XML text
blocks. a character-by-character dump using a for-loop
may reveal to you that certain characters may be mixed
up with 2-character sequences (or vice versa, i forgot
which). to work around this problem, you may want to use
a CDATA block to wrap around your text e.g.

<![CDATA[Mon père aime bien les cafés à Paris.]]

tell me if this works to your satisfaction.

-----
Ng, Foo Keong (Sophus)
e-Learning Consultant
eml: lefouque@magix.com.sg
tel: +065 9-6363163



[quoted text, click to view]



the flashster
3/10/2004 8:22:23 PM
If you use UTF-16 encoding it will support all of your chars. Without trouble.
<? xml version="1.1" encoding="UTF-16">

just make sure you use an editor that is capable of saving in UTF-16. Notepad
is not able to do this, you can download XML-notepad, or I personally use
XMLSpy.

hth,

|:.The Flashster.:|
the flashster
3/10/2004 8:22:25 PM
If you use UTF-16 encoding it will support all of your chars. Without trouble.
<? xml version="1.1" encoding="UTF-16">

just make sure you use an editor that is capable of saving in UTF-16. Notepad
is not able to do this, you can download XML-notepad, or I personally use
XMLSpy.

hth,

|:.The Flashster.:|
AddThis Social Bookmark Button