Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Mar 2003
    Location
    Ottawa, Ontario, Canada
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Forcing Unicode Character Set

    Good morning!

    I've got a problem.

    I've designed an ASP page that extracts text from a database and sends the information to a Flash movie. The problem is that when the text has international characters, Flash doesn't interpret the characters right.

    I originally thought that this was a Flash problem, but it turns out that the ASP isn't sending the text in Unicode format.

    I need to force ASP to use Unicode (encoded using either UTF-8 or UTF-16) or use a Unicode escape sequence to include any international character.

    Is there an equivilent in ASP to the following PHP code:

    myText = utf8_encode(myText)

    If not, how do I force ASP to send the text correctly?

    Please help!

    Thanks in advance!!
    Last edited by Jason_Beaudoin; 05-22-2003 at 04:39 PM.
    Jason Beaudoin
    Web Designer
    Canadian Army

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    check this http://www.asp101.com/articles/flash/index.asp out.
    values need to be in the querystring and need to use server.URLendcode

    example with complete sourcecode at the botom. (Haven't tested it but it looks good)

  • #3
    New Coder
    Join Date
    Mar 2003
    Location
    Ottawa, Ontario, Canada
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah... my string is URL encoded, which makes this all the more perplexing.

    If you go to the following URLs you'll see what I mean:

    This is the ASP file that generates the string:

    http://www.army.forces.gc.ca/LF/Fran...icker_data.asp

    As you can see, it's URL encoded.

    This is the result:

    http://www.army.forces.gc.ca/LF/Francais/home.asp

    You'll notice that the ticker on the left-hand side is not displaying the international characters correctly.

    I've tried everything to fix this problem. I tried using Flash's built-in unescape function and that doesn't work either. I've been on countless Flash support websites, and no one can help me.

    This is driving me insane!!
    Jason Beaudoin
    Web Designer
    Canadian Army

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not sure what you did, but it looks like it's working now to me... are you still having problems with this?

    If you did solve it, please post your solution as well, it might help someone else!
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #5
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Indeed seems to work. Post it up here.

    I noticed yesterday it showed a </html> and wanted to point it out (gotgot). I see you stripped of the html and just printed the text.

  • #6
    New Coder
    Join Date
    Oct 2002
    Location
    Holy Land
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I had similar problem (now solved):
    http://www.codingforums.com/showthre...824#post144824
    ··(Tip): 2 get code from this page - paste it in2 WordPad and then in2 NotePad...
    ··
    ··Best Regards - Yovav Gad
    ··EMail: Dev@GadWorks.com
    ··Web-Site: www.GadWorks.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •