I have a problem when defining Strings in external AS files that contain
German umlauts (�,�,�). Although the AS file is saved as UTF-8 the text
does not show up correctly in the Flex application. Umlauts that reside
in the MXML file are displayed correctly:

// testFile.as
function getTestString(Void):String {
return "�� �� ��";
}
// end testFile.as

<!-- test.mxml -->
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; >
<mx:Script source="testFile.as" />

<mx:Label text="AS Umlauts: {getTestString()}" /> 
<mx:Label text="MXML Umlauts: �� �� ��" /> 

</mx:Application>
<!-- end test.mxml -->

I first stumbled across this as I tried to set the monthNames property
of the DateField programmatically. In Germany the month "march" is
written "M�rz" - the DateField chooses to display "März" instead.

Any ideas?

Dirk.


Reply via email to