Accented characters, XML, Flash

I have a flash application which is pulling information to
populate dynamic fields from two XML files. We have three
languages supported, and have been having problems with the
non-english accented characters displaying properly
when they are called from the XML. I have checked that the
XML files are encoded in UTF-8, and we have also tried writing
the html code, the unicode code, putting the information in a
C DATA shell. I'm out of options that I can think of, and I'd
appreciate if any other folks have some input on this issue.
I did find this other thread which seems to be about the same
issue, but there was no resolution given on it.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid =1212142&highlight_key=y&keyword1=accent%20characters

So the same questions arise. What happens in the testing
environment if you trace it or if you go Debug and list variables?
Also you say they aren't displaying properly. What does that
mean? Exactly how are they improper?
PS: I'm absolutely certain that the other thread was not
correctly saving as UTF-8.

Similar Messages

  • Problem with base64 encoding an xml file with accented characters

    Oracle 10.2.0.1.0 Enterprise Edition running under windows 2003 server
    DB Characterset UTF-8
    I have a routine which takes an xml file and base64 encodes it, and the base64encoded text is stored in a clob column of a table.
    The xml file is stored in UTF-8 format.
    The routine works correctly, except when there are accented characters.
    I am using dbms_lob.loadclobfrom file to load the file.
    DBMS_LOB.OPEN(src_clob, DBMS_LOB.LOB_READONLY);
        DBMS_LOB.LoadCLOBFromFile(
              DEST_LOB     => dest_clob
            , SRC_BFILE    => src_clob
            , AMOUNT       => DBMS_LOB.GETLENGTH(src_clob)
            , DEST_OFFSET  => dst_offset
            , SRC_OFFSET   => src_offset
            , BFILE_CSID   =>dbms_lob.default_csid
            , LANG_CONTEXT => lang_ctx
            , WARNING      => warning
        DBMS_LOB.CLOSE(src_clob);base 64 encoded xml with accented character -- incorrect
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxncDpBcHBs
    aWNhdGlvblByb2ZpbGUgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAx
    L1hNTFNjaGVtYS1pbnN0YW5jZSINCiAgICB4c2k6c2NoZW1hTG9jYXRpb249Imh0
    dHA6Ly9uYW1lc3BhY2VzLmdsb2JhbHBsYXRmb3JtLm9yZy9zeXN0ZW1zLXByb2Zp
    bGVzLzEuMS4wIGh0dHA6Ly9uYW1lc3BhY2VzLmdsb2JhbHBsYXRmb3JtLm9yZy9z
    eXN0ZW1zLXByb2ZpbGVzLzEuMS4wL0dQLnN5c3RlbXMucHJvZmlsZXMuMS4xLjAu
    QXBwbGljYXRpb25Qcm9maWxlLnhzZCINCiAgICB4bWxuczpncD0iaHR0cDovL25h
    bWVzcGFjZXMuZ2xvYmFscGxhdGZvcm0ub3JnL3N5c3RlbXMtcHJvZmlsZXMvMS4x
    LjAiDQogICAgVW5pcXVlSUQ9Ik1FIiBQcm9maWxlVmVyc2lvbj0iMS4xLjAiIEVy
    cmF0YVZlcnNpb249IjAiPg0KICAgIDxncDpEZXNjcmlwdGlvbj5Gb3J1bSBUZXN0
    PC9ncDpEZXNjcmlwdGlvbj4NCiAgICA8Z3A6RGF0YUVsZW1lbnQgTmFtZT0iw6Fj
    Y2VudCIgRXh0ZXJuYWw9InRydWUiIFR5cGU9IkJ5dGVTdHJpbmciIEVuY29kaW5n
    PSJIRVgiIEZpeGVkTGVuZ3RoPSJmYWxzZSIgTGVuZ3RoPSIxNiIgUmVhZFdyaXRl
    PSJ0cnVlIiBVcGRhdGU9InRydWUiIE9wdGlvbmFsPSJ0cnVlIiAvPiAgICANCjwv
    Z3A6QXBwbGljYXRpb25Qcm9maWxlPg0Kbase 64 encoded xml without accented character -- correct
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxncDpBcHBs
    aWNhdGlvblByb2ZpbGUgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAx
    L1hNTFNjaGVtYS1pbnN0YW5jZSINCiAgICB4c2k6c2NoZW1hTG9jYXRpb249Imh0
    dHA6Ly9uYW1lc3BhY2VzLmdsb2JhbHBsYXRmb3JtLm9yZy9zeXN0ZW1zLXByb2Zp
    bGVzLzEuMS4wIGh0dHA6Ly9uYW1lc3BhY2VzLmdsb2JhbHBsYXRmb3JtLm9yZy9z
    eXN0ZW1zLXByb2ZpbGVzLzEuMS4wL0dQLnN5c3RlbXMucHJvZmlsZXMuMS4xLjAu
    QXBwbGljYXRpb25Qcm9maWxlLnhzZCINCiAgICB4bWxuczpncD0iaHR0cDovL25h
    bWVzcGFjZXMuZ2xvYmFscGxhdGZvcm0ub3JnL3N5c3RlbXMtcHJvZmlsZXMvMS4x
    LjAiDQogICAgVW5pcXVlSUQ9Ik1FIiBQcm9maWxlVmVyc2lvbj0iMS4xLjAiIEVy
    cmF0YVZlcnNpb249IjAiPg0KICAgIDxncDpEZXNjcmlwdGlvbj5Gb3J1bSBUZXN0
    PC9ncDpEZXNjcmlwdGlvbj4NCiAgICA8Z3A6RGF0YUVsZW1lbnQgTmFtZT0iYWNj
    ZW50IiBFeHRlcm5hbD0idHJ1ZSIgVHlwZT0iQnl0ZVN0cmluZyIgRW5jb2Rpbmc9
    IkhFWCIgRml4ZWRMZW5ndGg9ImZhbHNlIiBMZW5ndGg9IjE2IiBSZWFkV3JpdGU9
    InRydWUiIFVwZGF0ZT0idHJ1ZSIgT3B0aW9uYWw9InRydWUiIC8+ICAgIA0KPC9n
    cDpBcHBsaWNhdGlvblByb2ZpbGU+DQo=the xml file in use is
    <?xml version="1.0" encoding="UTF-8"?>
    <gp:ApplicationProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://namespaces.globalplatform.org/systems-profiles/1.1.0 http://namespaces.globalplatform.org/systems-profiles/1.1.0/GP.systems.profiles.1.1.0.ApplicationProfile.xsd"
        xmlns:gp="http://namespaces.globalplatform.org/systems-profiles/1.1.0"
        UniqueID="ME" ProfileVersion="1.1.0" ErrataVersion="0">
        <gp:Description>Forum Test</gp:Description>
        <gp:DataElement Name="áccent" External="true" Type="ByteString" Encoding="HEX" FixedLength="false" Length="16" ReadWrite="true" Update="true" Optional="true" />   
    </gp:ApplicationProfile>The file is being loaded from a windows xp professional 32 bit system.
    If I just convert the xml text of the file using
    select utl_raw.cast_to_varchar2(
    utl_encode.base64_encode(
    utl_raw.cast_to_raw(
    '<?xml version="1.0" encoding="UTF-8"?>
    <gp:ApplicationProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://namespaces.globalplatform.org/systems-profiles/1.1.0 http://namespaces.globalplatform.org/systems-profiles/1.1.0/GP.systems.profiles.1.1.0.ApplicationProfile.xsd"
        xmlns:gp="http://namespaces.globalplatform.org/systems-profiles/1.1.0"
        UniqueID="ME" ProfileVersion="1.1.0" ErrataVersion="0">
        <gp:Description>Forum Test</gp:Description>
        <gp:DataElement Name="áccent" External="true" Type="ByteString" Encoding="HEX" FixedLength="false" Length="16" ReadWrite="true" Update="true" Optional="true" />   
    </gp:applicationprofile>'
    ))) from dual;I get the following
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGdwOkFwcGxp
    Y2F0aW9uUHJvZmlsZSB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEv
    WE1MU2NoZW1hLWluc3RhbmNlIgogICAgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRw
    Oi8vbmFtZXNwYWNlcy5nbG9iYWxwbGF0Zm9ybS5vcmcvc3lzdGVtcy1wcm9maWxl
    cy8xLjEuMCBodHRwOi8vbmFtZXNwYWNlcy5nbG9iYWxwbGF0Zm9ybS5vcmcvc3lz
    dGVtcy1wcm9maWxlcy8xLjEuMC9HUC5zeXN0ZW1zLnByb2ZpbGVzLjEuMS4wLkFw
    cGxpY2F0aW9uUHJvZmlsZS54c2QiCiAgICB4bWxuczpncD0iaHR0cDovL25hbWVz
    cGFjZXMuZ2xvYmFscGxhdGZvcm0ub3JnL3N5c3RlbXMtcHJvZmlsZXMvMS4xLjAi
    CiAgICBVbmlxdWVJRD0iTUUiIFByb2ZpbGVWZXJzaW9uPSIxLjEuMCIgRXJyYXRh
    VmVyc2lvbj0iMCI+CiAgICA8Z3A6RGVzY3JpcHRpb24+Rm9ydW0gVGVzdDwvZ3A6
    RGVzY3JpcHRpb24+CiAgICA8Z3A6RGF0YUVsZW1lbnQgTmFtZT0iw6FjY2VudCIg
    RXh0ZXJuYWw9InRydWUiIFR5cGU9IkJ5dGVTdHJpbmciIEVuY29kaW5nPSJIRVgi
    IEZpeGVkTGVuZ3RoPSJmYWxzZSIgTGVuZ3RoPSIxNiIgUmVhZFdyaXRlPSJ0cnVl
    IiBVcGRhdGU9InRydWUiIE9wdGlvbmFsPSJ0cnVlIiAvPiAgICAKPC9ncDphcHBs
    aWNhdGlvbnByb2ZpbGU+Edited by: Keith Jamieson on Jul 13, 2012 9:59 AM
    added code tag for last base64 encoded object

    Not sure if utl_i18n is already there in version prior to 11.2.0.2.
    But on above mentioned version I can do the simplified method
    SQL> SELECT utl_i18n.raw_to_char (
             utl_encode.base64_encode (
               xmltype (
                 '<?xml version="1.0" encoding="UTF-8"?>
    <gp:ApplicationProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://namespaces.globalplatform.org/systems-profiles/1.1.0 http://namespaces.globalplatform.org/systems-profiles/1.1.0/GP.systems.profiles.1.1.0.ApplicationProfile.xsd"
        xmlns:gp="http://namespaces.globalplatform.org/systems-profiles/1.1.0"
        UniqueID="ME" ProfileVersion="1.1.0" ErrataVersion="0">
        <gp:Description>Forum Test</gp:Description>
        <gp:DataElement Name="áccent" External="true" Type="ByteString" Encoding="HEX" FixedLength="false" Length="16" ReadWrite="true" Update="true" Optional="true" />   
    </gp:ApplicationProfile>').getblobval (
                 NLS_CHARSET_ID ('utf8'))),
             'utf8')
             x
      FROM DUAL
    X                                                                                                                                                    
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGdwOkFwcGxp                                                                                     
    Y2F0aW9uUHJvZmlsZSB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEv                                                                                     
    WE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6c2NoZW1hTG9jYXRpb249Imh0dHA6Ly9u                                                                                     
    YW1lc3BhY2VzLmdsb2JhbHBsYXRmb3JtLm9yZy9zeXN0ZW1zLXByb2ZpbGVzLzEu                                                                                     
    MS4wIGh0dHA6Ly9uYW1lc3BhY2VzLmdsb2JhbHBsYXRmb3JtLm9yZy9zeXN0ZW1z                                                                                     
    LXByb2ZpbGVzLzEuMS4wL0dQLnN5c3RlbXMucHJvZmlsZXMuMS4xLjAuQXBwbGlj                                                                                     
    YXRpb25Qcm9maWxlLnhzZCIgeG1sbnM6Z3A9Imh0dHA6Ly9uYW1lc3BhY2VzLmds                                                                                     
    b2JhbHBsYXRmb3JtLm9yZy9zeXN0ZW1zLXByb2ZpbGVzLzEuMS4wIiBVbmlxdWVJ                                                                                     
    RD0iTUUiIFByb2ZpbGVWZXJzaW9uPSIxLjEuMCIgRXJyYXRhVmVyc2lvbj0iMCI+                                                                                     
    CiAgPGdwOkRlc2NyaXB0aW9uPkZvcnVtIFRlc3Q8L2dwOkRlc2NyaXB0aW9uPgog                                                                                     
    IDxncDpEYXRhRWxlbWVudCBOYW1lPSLDoWNjZW50IiBFeHRlcm5hbD0idHJ1ZSIg                                                                                     
    VHlwZT0iQnl0ZVN0cmluZyIgRW5jb2Rpbmc9IkhFWCIgRml4ZWRMZW5ndGg9ImZh                                                                                     
    bHNlIiBMZW5ndGg9IjE2IiBSZWFkV3JpdGU9InRydWUiIFVwZGF0ZT0idHJ1ZSIg                                                                                     
    T3B0aW9uYWw9InRydWUiLz4KPC9ncDpBcHBsaWNhdGlvblByb2ZpbGU+Cg==                                                                                         
    1 row selected.which encodes and decodes properly on my system even with accented characters.

  • Converting XML to Spreadsheet - Problem with Accented Characters

    I have a program that uses an external program to gathers user account information from Active Directory. The external program is .Net, and I execute it from my Java app, which then collects the XML output and saves it in a String variable. So far so good.
    Next it parses the XML and retrieves the values for each field for each user 'record' and stores these values in a String member inside of a class I created called "User".
    At the end of the process, the User class data is written to a file in XML format. Still, so far so good. However, using a text editor, any user names that have accented characters in them have an extra space character after the accented character. E.g. accented "e" becomes "e ". At least that is how it appears in the Textpad editor app that I use.
    Next I have a class called "XMLToExcel", that creates a spreadsheet using Apache's POI library, reads in the XML records , and writes the values for each field into a cell. Here the name with an accented character gives the message "[Fatal Error] <file name>:2617:23: Invalid byte 1 of 1-byte UTF-8 sequence."
    I'm not sure what I can to do fix this, or even where to fix it. I wouldn't mind losing the accented characted and replacing it with an un-accented one.
    Any ideas? I can provide code snippets if that would help.
    -John Gooch

    The text looks the same in Notepad and Textpad. However, I manually added the "encoding" tag with the value of "ISO-8859-1", and the converter no longer complains about invalid characters.
    I added the encoding tag to my application's output file, so the converter should not complain about it on the next run. Unfortunately, the names have been fixed in Active Directory ( the special character was there by mistake ), so I cannot do a live test to be sure that it is fix.
    Thanks for the help, Duke points incoming!

  • Accented characters do not display correctly if there is a variable beside it

    Hello,
    We are experiencing a problem when we have text with accented characters an a variable beside it within the same text box.
    The problem is that the accented characters in the text do not display correctly in the preview or publised course to Flash9
    These characters display correctly in Captivate in edit mode.
    This is the process we have followed:
    Export to XML
    Translated
    Import XML
    Publish to Flash9
    Captivate version:  4
    OS: Windows Vista SP2
    We have tried to work with locale in Spanish with no luck, the only solution we have found is to put the text and the variable in different text boxes
    I have pasted an image of the preview and also of the text in Captivate edit mode.
    Any help will be very welcomed !
    Tess

    Hi there
    I agree with Lilybiri that you should definitely file a Bug Report.
    However, a thought occurs here. Have you tried placing the accented text in a User Defined variable?
    Assuming this is a workaround, my thought is that you could then just have a caption with two variables. The User Defined variable containing the accented text followed immediately by the system variable providing the Project Name.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Spanish accent characters are not displayed proper in excel file

    Hi
    I have written a program which displays one report file (.xls file ) on the browser.
    This report file is in spanish language and contains few accent characters like
    ("� � � � � � �"). These characters are not displyed properly in that excel file which is opened in the browser. I have used utf-8 encoding method. I tried with some other encoding methods available. But still this problem continues.
    Kindly provide me help as soon as possible.
    Thanks and
    Regards,
    Deval

    File is generated through a java bean at runtime and it is not stored pgysically.
    If I copy these characters from somewhere to new xls file then it will be displayed properly.
    Sample code which is used for setting headers is as below:
         protected void setContentType (
              HttpServletResponse     p_response
         ,     InstanceData          p_instancedata
              p_response.setHeader ("Cache-Control", "no-cache");
              p_response.setHeader ("Cache-Control", "max-age=0");
              p_response.setHeader (
                   "Content-Disposition", "inline; filename="
              +      p_instancedata.userId
              +      "_"
              +      System.currentTimeMillis ()
              +     ".csv"
              System.out.println("Content generator = ");
              p_response.setHeader("charset","utf-8");
              p_response.setContentType (EXCEL_CONTENT_TYPE);
    For generating this xls file, format of data is XML. Means both request and response data will be in XML format.
    Hope this information help in suggesting any solution for this problem.
    Regards,
    Deval

  • Help with French Accent Characters Corrupted

    Hi, All.
    I am developing a Flex Front end connect with Java back-end.
    The back-end sends data retrieved from XML file to the Flex
    front-end; displays it in an TextArea, and allow user to change.
    After user changes the data, hit "Save" button, then Flex sends the
    data to the back-end.
    I check with the back-end, make sure the data was correct
    when sending out to Flex, and the French accented characters gets
    corrupted when sending back from Flex. However, in Flex side, this
    change cannot be awared. (i.e. The French accents characters
    display correctly in Flex, but sending wrong character back). I'm
    guessing that might be something related to character sets.
    However, I cannot find anywhere to set character sets in
    HTTPService. Anybody has idea?

    Use Ariel MS Unicode font.

  • Accented characters in email fields

    I'm using this script to have email sent to me through a mail form:
    <?php
    // initialize variables for To and Subject fields
    $to = '[email protected]';
    $subject = 'Een testmail';
    $from = $_POST["from"];
    $email = $_POST["email"];
    $comments = $_POST["comments"];
    // build message body from variables received in the POST array
    $message = "Van: $from \n\n";
    $message .= "Email: $email \n\n";
    $message .= "Bericht: $comments";
    $message = stripslashes($message);
    //convert flash line breaks
    $message= str_replace("\r", "\n", $message);
    $message=nl2br($message);
    // add additional email headers for more user-friendly reply
    $additionalHeaders  = "From: $from <".$email.">\r\n";
    $additionalHeaders .= "Reply-To: ".$email."\r\n";
    $additionalHeaders .= "MIME-Version: 1.0\r\n";
    $additionalHeaders .= "Content-type: text/html; charset=utf-8\r\n";
    // send email message
    $OK = mail($to, $subject, $message, $additionalHeaders);
    // let Flash know what the result was
    if ($OK) {
      echo 'sent=OK';
      else {
      echo 'sent=failed&reason='. urlencode('Er is een probleem met de server. Probeer het later nog eens.');
    ?>
    The problem is that I can't get accented characters appear into the From: cc: bcc: fields. For example, when I fill the From field with 'René' it appears as 'RenX' in the From: field. I've set everything to utf-8 but that doesn't seem to matter. When I receive an html text mail, the From: fields displays accented characters as strange codes, like RenA@ or RenX for René.
    In the message text itself it varies: it either displays René when the mail is viewed as plain text mail, or RenA@ when the mail is views as html text. How can I get accented characters appear inside email fields too? And also in the body text when the email is viewed as html text?

    It comes down to this. Since flash outputs in utf-8 I used utf-8 in here too. But narrowing it down to the most basic part:
    <?php
    $headers = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset= UTF-8\r\n";
    $headers .= "From: René <[email protected]>\r\n";
    $OK = mail('[email protected]', 'A question', 'René is my name', $headers);
    if ($OK) {
      echo 'sent=OK';
      else {
      echo 'sent=failed&reason='. urlencode('There is a problem with the server. Try again later.');
    ?>
    When I view this through webmail I get to see RenX in the From field where it should be René. Changing charset to ISO8859-1 won't work either. I get RenX in the From field and RenA@ in the message part. And when I switch in webmail from text/html to text/plain it says Ren? in the message part.
    How can I make it display René in all headers and message? Both in html mode and in plain text mode?

  • French accented characters not translated during decodeIncomingMessage

    Hello,
    Our b2b.log displays the correct French syntax during the decryption process after receiving message from our partner.
    "oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin:decryptAndVerify Enter"
    example = È
    But the French characters translate to ? during the
    "oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin:decodeIncomingMessage" and
    "oracle.tip.adapter.b2b.exchange.ebms.EBMSExchangePlugin:getPayload"
    I tried setting a unix environment variable on the B2B server NLS_LANG=CANADIAN FRENCH_CANADA.WE8MSWIN1252
    But this did not help.
    Should I also ask the NLS_LANG be set on the database server?
    thanks in advance,
    Ken

    Hello Anuj,
    It takes awhile to arrange a change configuration with our IT section and arrange a test message with our partner.
    But we did arrange a test a few minutes ago.
    The b2b_2.log tip.properties reads as:
    -bash-3.00$ grep encoding tip.properties
    oracle.tip.adapter.b2b.encoding=ISO-8859-1
    #oracle.tip.adapter.b2b.encoding=Cp1252
    #oracle.tip.adapter.b2b.encoding=UTF-8
    But the b2b.log contains:
    -bash-3.00$ grep encoding b2b_2.log
    <?xml version="1.0" encoding="utf-8" ?>
    2009.10.30 at 15:27:23:186: Thread-13: B2B - (DEBUG) oracle.tip.adapter.b2b.callout.B2BCalloutHandler:processIncomingCallout payload after callout: <?xml version = '1.0' encoding = 'UTF-8'?>
    2009.10.30 at 15:27:23:358: Thread-13: Repository - (INFORMATION) BIND VARS = (7720B238D6E7808EE0430AFA0B04808E-11-1, 11, 1, N, , 1070, clob, <?xml version = '1.0' encoding = 'UTF-8'?>
    <?xml version="1.0" encoding="utf-8" ?>
    <?xml version="1.0" encoding="utf-8" ?>
    2009.10.30 at 15:30:59:311: Thread-13: B2B - (DEBUG) oracle.tip.adapter.b2b.callout.B2BCalloutHandler:processIncomingCallout payload after callout: <?xml version = '1.0' encoding = 'UTF-8'?>
    2009.10.30 at 15:30:59:368: Thread-13: Repository - (INFORMATION) BIND VARS = (7720B238D6F2808EE0430AFA0B04808E-11-1, 11, 1, N, , 1070, clob, <?xml version = '1.0' encoding = 'UTF-8'?>
    <?xml version="1.0" *encoding="utf-8"* ?>
    Does this indicate that the encoding did not take effect?
    Do we need to remove the commented lines in the tip.properties file?
    The accented characters translated to ? in this test (in b2b.log)
    thanks
    Ken

  • Tomcat unable to read accented characters from MySQL

    Folks,
    Can anyone help with me this problem?
    It seems that my version of Tomcat is unable to read accented characters from my MySQL Database.
    I've checked in the Database and the characters are all correctly represented there. But when, in my servlet code, I do:
    String author = results.getString("author_surname");If the String contains any accented character then the character shows as a '?'. (Even before it gets to the JSP - I'm writing the results straight to catalina.out).
    Looking around these forums I found that some people suggested adding
    ?useUnicode=TRUE&characterEncoding=UTF-8;to the end of my jdbc url. As in:
    <ResourceParams name="jdbc/connection">
    //a whole load of other params
      <parameter>
        <name>url</name>
         <value>jdbc:mysql://localhost:3306/bookshop?useUnicode=TRUE&characterEncoding=UTF-8</value>
      </parameter>
    </ResourceParams>inside my server.xml
    But it doesn't seem to make any difference. In addition, I doubt I even need to use Unicode as the accents I need are only: ����� etc.
    (Incidentally, writing that line into my server.xml, tomcat complains that it should finish with a semi-colon. Is that correct? Even if I put in the semi-colon, it still complains!!)
    Any suggestions on this would be much appreciated. Thank you.

    user13109986 wrote:
    HI,
    From http://download.oracle.com/docs/cd/B10501_01/server.920/a96529/ch9.htm
    My understanding is the JDBC Api converts the string from the database to UTF-16.. If so is there any way to disable the UTF-16 encoding at JDBC API?That's exactly what it's supposed to do. There isn't even any concept of what it would mean to disable that: Java characters are UTF-16 representations of Unicode code-points, so there isn't anything else it could do.
    I still suspect the JDBC part is working correctly and your writing-to-file isn't. I found this quote in the Wikipedia article on Windows-1256:
    Windows-1256 is a code page used to write Arabic (and possibly some other languages that use Arabic script, like Persian) under Microsoft Windows. This code page is not compatible with ISO 8859-6 and MacArabic encodings.So was there a particular reason you chose Cp1256 and not ISO-8859-6 as the charset to write to the file with?

  • URL Access Scripting & accented characters

    I'm trying to write a small iTunes script that checks whether track titles of an album match those in the MusicBrainz database. But I'm running into a small problem when I try to retrieve the album information when it's title has accented characters.
    Here's a snippet of code:
    property baseURL : "http://musicbrainz.org/ws/1/release/"
    property tempFile : "Data:temp:tempAlbumInfo.xml"
    property albumTitle : "með suð í eyrum við spilum endalaust"
    set queryURL to "?type=xml&releasetypes=Official&limit=10&title=" & albumTitle
    set the clipboard to (baseURL & queryURL)
    -- Fetch the releases info from musicbrainz
    tell application "URL Access Scripting"
    download (baseURL & queryURL) to tempFile replacing yes
    end tell
    This gives me a 503 error from URL Access Scripting, but when I paste the variable just copied to the clipboard into Firefox, the page loads perfectly. Pasting it into Safari, it doesn't work.
    I'm guessing it has something to do with either the way URL Access Scripting and Safari rawurlencode their URLs, or some Unicode / Latin-1 problems.
    Oh, and for album titles without accented characters it all works perfectly. Any idea why this is happening? Thanks!

    Hello
    I think you need to escape URI string properly.
    Try replacing the line:
    set queryURL to "?type=xml&releasetypes=Official&limit=10&title=" & albumTitle
    with these two lines:
    set escapedTitle to do shell script "echo " & quoted form of albumTitle & " | perl -Mutf8 -MURI::Escape -lne 'print uri_escape($_);'"
    set queryURL to "?type=xml&releasetypes=Official&limit=10&title=" & escapedTitle
    Hope this may help,
    H
    Message was edited by: Hiroto (fixed typo: URI::Escape is the correct module.)

  • Contact.php file for my XML, Flash based contact form

    I am trying to create a contact.php file for my XML, Flash based contact form.
    Anybody know some good tutorials Please introduce me !
    Amanda Nguyen

    I think that I should post the 2 .xml files here:
    structure.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <contactFormStructure>
    <formItems>
      <item id="1" label="Name" required="true" />
    <item id="2" label="E-mail" required="true">
      <validator>EmailValidator</validator>
    </item>
      <item id="3" label="Message" required="true" />
    </formItems>
      </contactFormStructure>
    configuration.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <contactFormConfiguration>
    <emailTo>[email protected]</emailTo>
    <serverProcessorType>php</serverProcessorType>
    <serverProcessorFileName>contact</serverProcessorFileName>
    <validateRequiredOnly>false</validateRequiredOnly>
    <submitFormOnEnter>true</submitFormOnEnter>
    <messageSentText>Thank you for your message.</messageSentText>
    <messageSentFailedText>The form is not submitted.</messageSentFailedText>
    <formProcessingText>processing...</formProcessingText> 
    <plainText>false</plainText>
    <emailFromSource>2</emailFromSource>
    <subjectSource>Contact Form from your site</subjectSource>
    <validationErrorMessages>
    <message type="fieldIsRequired">{LABEL} is required.</message>
    <message type="emailNotValid">{LABEL} - is not valid email address.</message>
    <message type="minCharsLimitError">{LABEL} - The specified number of characters in a field is less
    than a required minimum.</message>
    <message type="reqExpError">{LABEL} - The specified string does not match with the regular
    expression.</message>
    <message type="biggerThanMaxError">{LABEL} - The specified number is greater than an acceptable
    biggest number for this field.</message>
    <message type="lowerThanMinError">{LABEL} - The specified number is lower than an acceptable
    lowest number for this field.</message>
    <message type="notANumberError">{LABEL} - The data is not a number.</message>
    <message type="negativeError">{LABEL} - The specified number must not be negative.</message>
    <message type="minRequirementError">{LABEL} - The minimum number of variants is not
    selected</message>
    <message type="maxRequirementError">{LABEL} - The number of variants selected exceeds the
    maximum</message>
    <message type="shouldBeEqualError">{LABEL} - values do not match</message>
    <message type="dateIsNotValidError">{LABEL} - date has wrong format</message>
    </validationErrorMessages>
    </contactFormConfiguration>
    I am working and learning and I would like to create the contact.php for my contact form.
    Please help !
    Amanda

  • Exporting accented characters (Unicode) in metadata

    Hi,
    I wrote a little script to export the metadata to an xml file. I am having some problems where the tags contain accented characters (áéö etc.).
    I managed to write the xml file with unicode encoding and the unicode characters contained in the script are transferred correctly.
    However the special characters in the metadata tags are being transformed to some unreadable characters.
    Is there any way to make sure these characters are transferred correctly?
    Thank you
    Balint

    David,
    Thank you for the help.
    I tried setting the output file encoding to UTF-8 or UTF-16, with or without setting the BOM. The accented characters still come out unreadable. I tried the examples that came with the SDK (output set to the console) and they too scramble the accented characters.
    In other cases, where using the iterator function, the fields that contain accented characters are completely ignored.
    Finally i found the .rawData function in Photoshop that could export the accented characters. This is a much slower solution, because Photoshop has to open all the files to read the metadata.
    I also experimented with my own XML files in Bridge. I can open these, do my transformations, save them and all the characters are well preserved.
    Balint

  • XML flash Menu

    Hello Guys,
    I am stuck with a xml flash menu which contains quite a few great options to manipulate the text, url, button and even change the color to the menu externally from xml. The only thing missing here (which I massively need it) is the option resizing the buttons from the xml file itself. The buttons need to be resized so that they fit each text length. I have the feeling that someone that is good at XML and deal with ActionScript would be able to easily add this option.
    Thanks for commiting your time on this and I would be happy to help anyone in return who tackles this requirement I am after now.
    Please download the file attached and you can own it as well.
    Looking forward to hearing from you soon.
    Respectfully yours,
    Beko

    Ok, here we go:
    ACTION SCRIPT CODE:
    _parent._visible = false;
    // xml processing
    menu_cfg_xml = new XML();
    menu_cfg_xml.load(String(_url.slice(0, (_url.length-3)))+"xml");
    menu_cfg_xml.ignoreWhite = 1;
    menu_cfg_xml.onLoad = function(ok) {
        // create main menu after successful loading of XML
        if (ok) {
            create_menu();
        } else {
            trace("XML not loaded");
    counter = 1;
    function create_menu() {
        while (counter<menu_cfg_xml.firstChild.childNodes.length) {
            attachMovie("button_type", "btn"+counter, counter);
            set("btn"+counter+"._x", counter*80-100);
            btn1._y = 0;
            // set the buttons text
            set("btn"+counter+".the_text", menu_cfg_xml.firstChild.childNodes[counter].attributes.text);
            set("btn"+counter+".the_url", menu_cfg_xml.firstChild.childNodes[counter].attributes.url);
            set("btn"+counter+".the_target", menu_cfg_xml.firstChild.childNodes[counter].attributes.target);
            this["btn"+counter].onRollOver = this["btn"+counter].onDragOver=function () {
                this.effect.gotoAndPlay(2);
                this.textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color2;
            this["btn"+counter].onRollOut = this["btn"+counter].onDragOut=function () {
                this.textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color1;
                this.effect.gotoAndPlay(9);
            this["btn"+counter].onRelease = function() {
                if (this.the_url != undefined and this.the_url != "") {
                    getURL(this.the_url, this.the_target);
            //set buttons color
            this["button_color"+counter] = new Color("btn"+counter+".btn_color");
            this["button_color"+counter].setRGB("0x"+menu_cfg_xml.firstChild.childNodes[0].attributes .button_color);
            //set button effect color
            this["effect_color"+counter] = new Color("btn"+counter+".effect");
            this["effect_color"+counter].setRGB("0x"+menu_cfg_xml.firstChild.childNodes[0].attributes .effect_color);
            //set button text color
            this["btn"+counter].textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color1;
            counter++;
        _parent._visible = true;
        info_clip._visible = false;
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    XML CODE:
    <?xml version="1.0" encoding= "UTF-8" ?>
    <!-- Menu created by www.adrianTNT.com -->
    <menu>
    <options button_color="000066" effect_color="87A10C" text_color1="87A10C" text_color2="FFFFFF">
    </options>
    <button text="Task force" url="http://www.google.com" target="_parent">width="250" height="136"</button>
    <button text="Service og turisme" url="http://www.google.com" target="_parent"></button>
    <button text="Fodbold" url="http://www.google.com" target="_parent"></button>
    <button text="Idraet" url="http://www.google.com" target="_parent"></button>
    <button text="Kunst and Design" url="http://www.google.com" target="_parent"></button>
    <button text="Teknisk/praktisk linje" url="http://www.google.com" target="_parent"></button>
    <button text="Gastronomi" url="http://www.google.com" target="_parent"></button>
    <button text="Laekker mad" url="http://www.google.com" target="_parent"></button>
    <button text="Musik" url="http://www.google.com" target="_parent"></button>
    <button text="Turbo-boglig" url="http://www.google.com" target="_parent"></button>
    </menu>

  • How can I disable the accented characters from popping up on the iPad?

    Hello all,
           I work with clients who are unable to talk due to various developmental delays. We use the Proloquo2go app which uses the regular iPad keyboard for communication. Is there a way to disable the accented characters from popping up when typing on the keyboard? This is very distracting for some of our clients. Thanks in advance for any advice.
    Nikki

    I don't use an external keyboard but I wonder if you would have any different functionality with one. I'm sorry that I cannot recommend anything but have you thought about that approach?
    http://mashable.com/2012/05/11/ipad-special-needs/

  • How to load CSV with accented characters?

    Hi,
    I have a database instance with NLS_CHARACTERSET = 'AL32UTF'. I upload a csv file with APEX into WW_FLOW_FILES table and then parse it with dbms_lob.instr. The problem that I am facing is that if I save the CSV file in UTF8, then this works fine, if I save it in any other encoding then it's displaying 'funny' characters when I try to parse it and display the parsing result and the source data contains some accented characters, like, á, é, ő etc,
    I am not sure if this is an APEX issue or I rather be turning to NLS forum. TIA.
    Tamas
    Edited by: Tamas Szecsy on Jan 30, 2011 6:34 PM

    Did you every find a resolution to this issue on importing with accented characters?

Maybe you are looking for