Search code examples
actionscript-3flashintellij-ideacyrillicnon-english

Non-english characters are not displayed correctly in IntelliJ 14


I have code :

    private static function askFromUser(cardId:uint):void {

        var s:String = "У клиента " + cardId + " произошло задвоение данных.";
        trace(s);
    }

It shows :

[trace] � ������� 436 ��������� ��������� ������.

What is the problem?


Solution

  • Your IntelliJ probably does not have the correct File Encoding for that file. The encoding IntelliJ is using should be displayed in the Status Bar near the lower right-hand corner of your IntelliJ window. If you can't find it, this page goes into great detail about changing file encodings in IntelliJ. If you don't know what encoding your file is in, that can be difficult to determine.

    I copied and pasted your code into a UTF-8 encoded file in my own IntelliJ and it displayed fine.