[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 399
  • Last Modified:

FlashPaper - Converting Unicode text to normal text

I am using FlashPaper on a project and I select the text in the display using the text selector icon and then use fp.getSelectedText() - this gives me the Unicode of the selected text - Now how do I convert this Unicode text into normal text?

  • 2
1 Solution
Dushan De SilvaCommented:
Put following action script on begining of first frame.

System.useCodepage = true;
krishnaprathabAuthor Commented:
Hi Dushan,

I tried using System.useCodePage but it doesnt help.

This is the code which I am using:

System.useCodepage = true;

this.createEmptyMovieClip("holder", 100);

intID = setInterval(select, 5000);

function select()
fp = holder.getIFlashPaper();

and this is the output I am getting when I have some text selected in the loaded FlashPaper

Ú±® ½±²­«³»®ó±®·»²¬»¼ ¿°°´·½¿¬·±²­ô ­«½¸ ¿­ »ó½±³³»®½»ô ¬¸» ©»¾­ °¿¹»ó¾¿­»¼ ³±¼»´ ¿²¼ ´¿½µ
±º ½´·»²¬ó­·¼» ·²¬»´´·¹»²½» ½¿² ³¿µ» »ª»² ®»´¿¬·ª»´§ ­·³°´» ¬®¿²­¿½¬·±²­ ½±²º«­·²¹ ¿²¼ »®®±® °®±²»ò ß­
¿ ®»­«´¬ô ±²´·²» ¾«­·²»­­»­ ¿®» ´±­·²¹ ³·´´·±²­ ±º ¼±´´¿®­ ¬± ¿¾¿²¼±²»¼ ­¸±°°·²¹ ½¿®¬­ ±® ½±­¬´§
½«­¬±³»® ­»®ª·½»½¿´´­

- KP
Dushan De SilvaCommented:
That only tells flash to use default charset on the computer the flash movie is running.

System.useCodepage = true;  is actually good for debug and developement time, but I WOULD NEVER SUGGEST it to use in production, since it's not portable solution!

Here's a table listing symbols of Mac's encoding:

Here's a standard ANSI encoding you need to convert to:

Sorry I can't give you an already-made conversion table, but with these links, it should be straightforward to make one (use unicode numbers to join two tables).

BR Dushan

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now