Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : Problems with accents and special characters


jloriena NO[at]SPAM hotpop.com
3/7/2004 9:46:52 PM
I have a flash file that retrieves data from an Access database using
an ASP page and loadVariables function. Everything works fine except
that it returns boxes instead of accented characters such as "çãáñ"
etc. I also tried URLEncoding, but it returns the exact same thing.
winner
3/8/2004 6:19:59 AM
hi ,

I am not very familiar with flash and asp intergration i think this tutorial will help u

http://www.asp101.com/articles/flash/index.asp



regards
jloriena NO[at]SPAM hotpop.com
3/9/2004 12:18:18 PM
[quoted text, click to view]

Actually, my question referred to retrieving accented characters from
an MS Access database into Flash, which returns as boxes instead. I'm
already familiar with the Flash/ASP integration.

I've read somewhere to URLEncode the result in ASP, but it still
returns the same exact result. I also tried forcing it with unicode
chars (like #E3, etc), but it also didn't work. Any help would be
James Fee
3/9/2004 4:00:49 PM
What Font are you trying to use in Flash? The different fonts will display
different characters for different codes.

Jim Fee

[quoted text, click to view]

Jack
3/9/2004 11:02:22 PM

[quoted text, click to view]

have you tried the suggestions at this technote -
http://www.macromedia.com/support/flash/languages.html

jloriena NO[at]SPAM hotpop.com
3/11/2004 10:20:54 PM
I'm using the Arial font. I have no problems using accented characters
with this (and many other fonts) in any other application (such as
Word, Internet Explorer, Notepad, etc.) Strangely, if I type in these
accented characters directly in Flash textboxes (static and dynamic),
the accents are shown perfectly (also during play). This only happens
when *retrieving* accented characters from an *external source* (such
as database with ASP) where they return as little "boxes".

[quoted text, click to view]
jloriena NO[at]SPAM hotpop.com
3/11/2004 10:40:43 PM
[quoted text, click to view]

I tried most of the suggestions without success. I URLEncode the text
in ASP before passing it to Flash as follows:

Response.Write Server.URLEncode(sResult)

But I think the problem is that Flash won't accept even URL Encoded
characters!? I also tried typing in the URL encoded character directly
in the database (for example by replacing "ç" with it's correspondent
URLEncoded format: "%E7"). It still doesn't work! It displays as an
annoying BOX in Flash!

The strange thing is, if I type in the accented character directly in
a static or dynamic textbox in Flash during design, the characters are
Kaoh
3/12/2004 12:56:00 PM
If you use XML parser to retrieve the info from the file make sure that the
file is set to UTF-8 encoding itself.
If the file itself isnt able to handle the chars properly then it will never
work getting it into flash.
Meaning save the asp file as utf-8 encoded text file and make sure that all
document declarations declareit as encoded in UTF-8.

Minja
3/21/2004 6:15:14 AM
Hi!
Try to insert a folowing string at first frame of the clip (before inserting
any other action):
[b]System.useCodepage = true;[/b]
I resolved this problem in italian & spanish language.
Let me now: minja@libero.it
Regards Minja
umm_col
3/21/2004 6:25:17 AM
Blue Wire Cat
3/26/2004 6:57:43 AM
THANK YOU SO MUCH TO MINJA!!!!

The code "System.useCodepage=true;" did the trick!!! I was running into the
same problems and had a heck of a time trying to find someone else who had the
same problem. And you had the answer too.

Whew! 6 months later and you're helping someone else out! GRAZIE!
arhhhh
6/22/2004 10:52:32 PM
AddThis Social Bookmark Button