Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003

    Problem with Latin chars under UTF-8

    I'm setting utf-8 when I do:
    <?xml version="1.0" encoding="UTF-8"?>
    however if I have any chars in the body that are non english, I get an error on the nokia emulators. As soon as I remove those chars, the page works. This is really done with an xs/xml, but I figured providing the output code would help.
    Response from server for nokia emulator

    HTTP/1.1 200 ok
    Date: Wed, 08 May 2002 14:01:23 GMT
    Server: IBM_HTTP_Server/ Apache/1.3.12 (Unix)
    Set-Cookie: sesessionid=HP3AE5VWADIHBVBPP52H2TY;Path=/
    Cache-Control: no-cache="set-cookie,set-cookie2"
    Expires: Thu, 01 Dec 1994 16:00:00 GMT
    content-length: 676
    sectionType: Wireless
    imageRootURL: http://wtp.nyc.com
    encoding: UTF-8
    translationFileURL: http://www.nyc.com/data/wireless/br/translations.xml
    homeURL: /us/index.xml
    Connection: close
    Content-Type: text/vnd.wap.wml
    Content-Language: en

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <meta content="text/vnd.wap.wml; charset=UTF-8" http-equiv="Content-Type"/>
    <card id="main" title="Wireless">
    <p mode="nowrap">
    <b>Country List</b>
    <a href="/webapp/preference/SetPreference?cc=us&lc=en">Estados Unidos</a>
    <a href="/webapp/preference/SetPreference?cc=br&lc=pt">Brasil</a>
    <a href="/webapp/preference/SetPreference?cc=fi&lc=fi">Finlndia</a>
    <a href="/webapp/preference/SetPreference?cc=se&lc=sv">Sucia</a>
    <a href="" title="Done"/>

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003

    RE: Problem with Latin chars under UTF-8


    If I paste your code to Nokia Mobile Internet Toolkit, it works for me. Are you using some particular phone simulator that it doesn't work with?

    sannah/Forum Nokia

Posting Permissions

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