Hi Dirk,

mmm, this works for me. I think I need a bit more information. Only those
particular characters you mentioned not working and others are OK? Also,
which platform, browser, Flash player version are you running?

Thank you!

-Yukari


-----Original Message-----
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 4:06 AM
To: FLEXCODERS (E-Mail)
Subject: [flexcoders] Problem with Umlauts in external AS files


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.


 
Yahoo! Groups Links



 


Reply via email to