PDA

View Full Version : special characters


emergency_pants
06-17-2005, 02:05 PM
I am working on some ecards made in French and Spanish.

The card messages are being displayed in dynamic textFields

The font is embedded.

The text is being passed to the swf in the html, via URL query strings OR could be done using flashVars.

The special characters are being passed in encoded form, either using URL-encode or HTML-encode.

The accent special characters are not displaying properly across all OS and all browsers, regardless of whether we use URL query string, flashvars, URL-encoding, HTML-encoding.

Can anyone give me some advice on how to pass and display the characters on all platforms? There must be a universal way of doing this so that it will work on all machines! I just don't have an idea what that is :eek: :D

Hope someone can make my day with this :p

Thank you.

Curly Brace
06-17-2005, 04:26 PM
Here's my old script: http://www.actionscript.org/actionscripts_library/String_Object/more2.shtml (named "Convert string to numbers and back")

emergency_pants
06-17-2005, 04:48 PM
That's a good idea, Curly!

But it looks like that works for text which originates in flash?

I'm not sure how I can apply it because the flashvars text is being set up using form items on an asp page. My colleage has written the asp (I know very little about it). All I know is that I am being passed characters via flashvars or query string and the characters are not showing in particular browser/OS setups.

Thanks for your reply. :)

I'm currently waiting to see how tests work on unencoded text, passed via flashvars into a font embedded textField with the following code on frame 1

System.useCodepage = true;


I'm not sure whether it will make any difference, but so far its working in all the Win browsers and on OSX browsers and am waiting for test results for OS9 browsers. Fingers crossed.

I'm sure this isn't really a good solution, passing unencoded characters, so if anyone has any further thoughts, they'll be gratefully received.

Have a good weekend.