Skip to main content
March 6, 2007
Question

external files codepage

  • March 6, 2007
  • 2 replies
  • 238 views
Hi, I'm now writting some as that will load information from several files. However, I am not able to edit these files, and they may be available with different codifications, like iso8559 or Unicode. Is there a way to identify the way the text was saved to load it correclty on flash? Currently I'm facing this exacta problem: two file I'm loading come with different codifications. If I set System.useCodePage to true, one of the is correctly read, but the other, no. The same, when I keep it false...
This topic has been closed for replies.

2 replies

Inspiring
March 6, 2007
You are going to have a hard time. Flash really likes to play with Unicode. I think you would do better to work on finding a way to get all the text into Unicode.

And I don't think there is a way for Flash to identify the contents of the file. And then even if there was, I don't think there is a way to switch how it handles it.

The useCodePage only tells Flash to use the codePage of the users end system. So unless you can count on the end users have the correct local operating system installed…

Sorry. If somebody knows differently I would love to learn.
Inspiring
March 6, 2007
What do you mean you can't edit them? You don't have access, they are read-only...?