Skip to main content
Participant
May 28, 2010 9:19 AM UTC
Answered

Problems exporting text in Indian languages

I tried exporting text in Indian languages to XML format, the resulting XML had '?' characters. The following code was used

var exporter:ITextExporter = TextConverter.getExporter(TextConverter.TEXT_LAYOUT_FORMAT);

var xmlExport:XML = exporter.export(_textFlow, ConversionType.XML_TYPE) as XML;

NOTE: The text was rendered as expected. Only the exported XML contained '?' characters.

Is there anyway to export these (see below) unicode characters to an XML without loosing the actual values.

Eg: ' हम कहाँ है?'

Thanks in Advance

This topic is closed to new replies. Start a new post to keep the conversation going.
rdermerCorrect answer
Inspiring
May 28, 2010 10:50 PM UTC

How did you save the XML?  Trace into the Flex console doesn't seem to support unicode.

The examples posted here:

http://blogs.adobe.com/tlf/2009/12/new-and-updated-tlf-samples.html

Contain the TextLayoutEditor example that shows exporting displaying the markup with unicode and saving it to a file.  Look for FileIOHelper.as.

Hope that helps,

Richard

2 replies

rdermerCorrect answer
Inspiring
May 28, 2010 10:50 PM UTC

How did you save the XML?  Trace into the Flex console doesn't seem to support unicode.

The examples posted here:

http://blogs.adobe.com/tlf/2009/12/new-and-updated-tlf-samples.html

Contain the TextLayoutEditor example that shows exporting displaying the markup with unicode and saving it to a file.  Look for FileIOHelper.as.

Hope that helps,

Richard

Translate
eanstwAuthor
Participant
May 31, 2010 7:03 AM UTC

Hi Richard,

        you are right.  Flex console does not support Unicode and I was trying to look for the exported data in there. Obviously, I did not find it. However, when I saved the exported data into a database, I could see the data was intact. Appreciate your help.
Thanks a ton

Translate