Tiago Pereira
Tiago Pereira

Reputation: 170

Flex Cyrillic localization

I've defined a Russian localization file but when setting the locale all I get is ? symbols... When creating a sample flex app with Cyrillic characters they are displayed just fine, but somehow setting the locale does no work.

Any ideas?

Upvotes: 0

Views: 629

Answers (2)

Tiago Pereira
Tiago Pereira

Reputation: 170

Fixed it... My localization files were not encoded in UTF8, that was causing the problem.

Upvotes: 2

Marty Pitt
Marty Pitt

Reputation: 29300

It sounds like you're using embedded fonts, but the characters you're trying to display aren't included in the font.

From the docs:

<?xml version="1.0"?>
<!-- fonts/EmbeddedFontCharacterRange.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Style>
  @font-face {
    src:url("../assets/MyriadWebPro.ttf");
    fontFamily: myFontFamily;
    advancedAntiAliasing: true;
    unicodeRange:
       U+0041-U+005A, /* Upper-Case [A..Z] */
       U+0061-U+007A, /* Lower-Case a-z */
       U+0030-U+0039, /* Numbers [0..9] */
       U+002E-U+002E; /* Period [.] */
 }

 TextArea {
    fontFamily: myFontFamily;
    fontSize: 32;
 }     

Upvotes: 0

Related Questions