Special character / Unicode problems

Ask a Question related to Adobe Flash, Flex & Director, Design and Development.

  1. #1

    Default Special character / Unicode problems

    Hi

    I am having a lot of trouble getting Flash to display danish characters.

    I am writing data to Flash from a mySQL database using PHP.

    I have tried using the utf8_encode function in PHP 4 and the newer iconv
    function in PHP 5.

    Neither work!!_??

    The text field is fine... I tested it using a normal utf8 encoded txt file.

    Am I missing something here?

    Can anyone help?? please

    mxc

    mxc Guest

  2. Similar Questions and Discussions

    1. syntax for inserting unicode character literal
      What is the syntax for inserting a unicode character literal? I thought it would be something like '\u05D0', but that doesn't work. Any help...
    2. Inserting character by UNICODE number
      How is this done? Inserting character from for example Glyphs pallette into text frame. In the older days you put ASCII code by alt + number on...
    3. Single Unicode Character - How many Bytes?
      I've got a single Cyrillic character delivered from a db field to my script, which displays correctly in my UTF-8 web page. This is the "backwards...
    4. Special character for SM?
      Hi all, I need to insert the character "SM", similar to special character "TM". Is there a keystroke for this like TM? Would rather use htm text...
    5. I need a special character....
      The a in Mangels need an umlaut, please. Eleanor
  3. #2

    Default Re: Special character / Unicode problems

    I am having the same problem.

    I am trying to retrieve data from MySql and load into a dyanmic text box, this
    is easy enough but as the content contains special characters, latin in my case.

    the latin chars are dropped along with the next char to it.

    I know the content in the table is un utf-8 and that the php file is sending
    it with the code for the special chars. I have tested the contentType and its
    x-www-form-urlencoded but not sure if this is right?

    So why is it not showing them, oh and yes I have specified the latin
    characters in the text field options.

    Jools


    jools2005 Guest

  4. #3

    Default Re: Special character / Unicode problems

    I have the solution to the problem so drop me mail at [email]mxc@moozeek.com[/email] and I will help u out.
    Also the solution is posted on the flashkit forum
    mxc Guest

  5. #4

    Default Re: Special character / Unicode problems

    Hi

    You have mail....

    although I have tried the $varC = utf8_encode($varB); option and this help to
    some extent.

    Before the disruptive special char was causing problems with the next char and
    the line spacing on that line but not it doesnt but it stil ignores that char.

    I think the $varC = utf8_encode($varB); option works to some extent but as
    soon as you urlencode to post it back it loses it.

    Jools

    jools2005 Guest

  6. #5

    Default Re: Special character / Unicode problems

    Just for anyone browsing or similarly stumped, the solution to this was to use
    utf8_encode($var); as your response from the php scripts.

    Although there is one side affect to this, if you have ampersands in you your
    data, once utf-8 encoded and sent to flash, flash thinks these are there next
    name/value pair and will tuncate the data there.

    I have tried using the suggest unicode code for an ampersand '\U0026' and the
    ususal one '\+U0026' but these dont seem to work, if anyone has any ideas how
    to get these to show up, I am all ears.

    Cheers

    Jools

    jools2005 Guest

  7. #6

    Default Re: Special character / Unicode problems

    Somewhere I read you have to escape these characters: \\U0026 but this would
    mean you would have to use ereg_replace() to do this before you pass the data
    to Flash.
    An alternative is retrieving the data via PHP/XML. All content with special
    characters is encoded with utf8_encode() and then parsed as a CDATA-section in
    the XML-file. All characters are then displayed correctly.

    LuigiL Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139