# How to include different Character Sets in Flex AIR project

**URL:** <https://forum.kirupa.com/t/how-to-include-different-character-sets-in-flex-air-project/329429>\
**Category:** flash\
**Created:** [August 28, 2012, 4:31am UTC](https://forum.kirupa.com/t/how-to-include-different-character-sets-in-flex-air-project/329429 "2012-08-28T04:31:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mayank\_Ag](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@Mayank\_Ag](https://forum.kirupa.com/u/Mayank_Ag)\
**Post date:** [August 28, 2012, 4:31am UTC](https://forum.kirupa.com/t/how-to-include-different-character-sets-in-flex-air-project/329429/1 "2012-08-28T04:31:23Z")

</div>

Hi All,

Flex, AIR(Desktop) Project.

**PROBLEM Scenario:**

My Application needs a path from Windows registry, So I am launching a .cmd file using Native Process API.  
As a result I get a text file with the path.

So, everything works fine(reading/writing), but if the path contains different languages like Korean, Chinese then the **READING OPERATION FAILS only when I install the application**. It works fine while debugging.  
**(By failing I mean its not getting the characters, its printing some garbage values.)**

I am using **readMultibyte & writeMultibyte** APIs, and I am assiging the character set dynamically as per the OS language. (Which is Enslish in current scenario)

**FINDING:**

I installed Windows with Korean Language on a system, so now if I build the .exe on this machine then it works fine. So, i guess its not able to get the Korean Character set from the English OS, thats why it failed in earlier case.

**Is there any way to include different character sets in a Flex project?**

Regards,  
Mayank
