Reading Dos text (Cp850, Cp437, Cp1252)
janschenkel at yahoo.com
Fri Aug 3 10:46:15 CDT 2007
--- Malte Brill <revolution at derbrill.de> wrote:
> Hi all,
> anyone got a pointer how to read text in those
> formats and get it to
> display correctly? (including umlauts and stuff.)
> Cp850, Cp437, Cp1252
> All the best,
As Mark mentioned, the best way is to provide
conversion tables in the form of custom property sets.
I recommend that you read the text file with the
"binfile:" method and then work with the charToNum of
each character as your index. That way, Revolution
doesn't try and help you by converting some characters
before you get to them.
Hope this helped,
Quartam Reports & PDF Library for Revolution
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
More information about the use-livecode