Skip to main content
Participant
May 28, 2010
Answered

Problems exporting text in Indian languages

  • May 28, 2010
  • 1 reply
  • 582 views

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 has been closed for replies.
Correct answer rdermer

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

1 reply

rdermerCorrect answer
Adobe Employee
May 28, 2010

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

eanstwAuthor
Participant
May 31, 2010

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