Skip to main content
Inspiring
June 23, 2010
Question

Chinese Characters

  • June 23, 2010
  • 1 reply
  • 2073 views

Hi,

This is a strange one.

I am importing an external XML language file, into Flash. In this XML file are a number of Chinese charaters that I want to use within my GUI.

There are a number of text fields that I want these chinese characters to be placed.

When I import the XML file using the Locale class, not all the characters appear. Some do but not all.

HOWEVER

If I manualy place 1 chinese character into each of the text fields at build time, when the XML is imported in at run time, ALL of the chinese characters now display correctly.

How is this so?

XML details: -  version="1.0" encoding="UTF-8"

CDATA is used to wrap around the chinese characters.

Has anyone any ideas here as I would much prefere not to have to place a single chinese character into every text field.

Thanks in advance.

This topic has been closed for replies.

1 reply

webqaflash
Inspiring
June 25, 2010

I think you have to embed the chinese characters in the dynamic textfields

DazFazAuthor
Inspiring
June 28, 2010

There are a number of problems with embedding the Chinese font. One being that the text fields that I’m using are dynamic so I do not know that characters are going to be used. I could create a "new font" within the library but by doing that the file sizes dramatically increases.

The flash interface will be assuming that the users system will already have the font installed.

webqaflash
Inspiring
June 28, 2010

To use chinese characters you should use embedding characters(Can be done in the flash interface.from the embed fonts select chenese).I think size will increase with 80 kb.