Japanese: XML: Character Set

Version 1
    This document was generated from CDN thread

    Created by: Brian Lavallee on 12-05-2009 02:48:19 AM
    Can anyone give me an idea how I can dispaly Japanese text with CiscoIPPhone XML?
    According to the documentation, "The new phone models (such as the 7970, 7971,
    7941, 7961, and 7911) provide UTF-8 and true Unicode support. These
    phones provide support for more multi-byte character sets and user
    locales like Japanese and Chinese."
    I can convert all the menus to Japanese by changing the device launguage.

    I have NEVER been able to get Japanese to display properly using the CiscoIPPhone XML.
      <Title>Japanese Text</Title>
      It does not work!

    I've tried all of the following without any luck.

    Content-Type: text/xml; charset=ISO-8859-1
    Content-Type: text/xml; charset=UTF-8
    Content-Type: text/plain; charset=Shift_JIS

    Subject: RE: Japanese: XML: Character Set
    Replied by: Tohru Ohzono on 12-05-2009 04:46:29 AM
    Hi Brian,
    I am developing an IP Phone Services application with Japanese locale.
    I think it will work if you add xml declaration, such as "<?xml version="1.0" encoding="utf-8"?>".
    The following should work fine.
    Can you try?
    Content-Type: text/xml; charset=utf-8
    <?xml version="1.0" encoding="utf-8"?>
     <Title>Japanese Text</Title>
     some prompt

    Subject: Resolved: Japanese: XML: Character Set
    Replied by: Brian Lavallee on 19-05-2009 02:00:17 AM
    Hi Tohru-san,
    Thanks, not having the XML version declaration was my issue. 
    Since I am using PHP, I just had to make a minor adjustment to pass the XML header properly. 
    Code is attached for others to reference.
    // headers to use XML in a .php file
    header('Content-Type: text/xml; charset=UTF-8');
    echo '<?xml version="1.0" encoding="UTF-8"?'.'>';

      <Title>Japanese Text</Title>
      This Works  

    {The "Prompt" tags did not survive the forum post.}