Actually, only the first 128 characters are reliably consistent. The upper 128 
characters vary between DOS (Code Page 437) and "standard" encoding ISO-8859-1 
(which, in turn, is slightly different from Windows CP 1252). The only built-in 
functions in LC are the MacToISO and ISOtoMac functions, so that won't help you 
here. You'll have to write your own function to replace upper-ascii characters. 
There is a handy comparison of the various common ascii character sets at 
<http://www.alanwood.net/demos/charsetdiffs.html>. Wikipedia entries for the 
various encodings can also be helpful, as they have complete character charts.

HTH

Devin


On Aug 6, 2012, at 12:10 PM, Bob Sneidar wrote:

> The first 256 characters should be the same in both. Do you have characters 
> that exceed the normal ASCII characters? 
> 
> Bob
> 
> 
> On Aug 6, 2012, at 11:04 AM, Matthias Rebbe wrote:
> 
>> Hi,
>> 
>> i have here an ascii text, created under Dos, which i have to convert at 
>> least to windows ansi. Because i have to do this very often in future i 
>> wanted to create a routine with LiveCode which does the convert for me. Can 
>> this be done with a livecode command/function or do i have to create a 
>> script to replace the wrong displayed characters?


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to