Re: code pages I think
- Posted by Igor Kachan <kinz at peterlink.ru> May 10, 2001
- 553 views
Hi John, > I thought I would just jot off a simple little program to > interchange capitals with small letters, vice versa and etc. - > simple text manipulation stuff (I thought). > I am using text files created in notepad, written in > Portuguese. I made a table in my euphoria program of the > varios accented vowels and their small/capital counterparts. > you know, like > if s[k] = 'a' <with an accent> then > s[k] = 'A' <with an accent> > end if ........... > Must be that Notepad uses some other codepage? ........... > I could make two tables I guess, but how to know which to use? This is the common problem for all non-english languages. Windows and MSDOS has different codepages. Windows - ANSI, MSDOS - 'extended' ASCII. On Windows, Terminal font for Portuguese CP must be the same as MSDOS Portuguese CP. Notepad, Word and so on (Win based) use ANSI. ED, Edit, QB, TB (all DOS based) use ASCII. ROM BIOS - ASCII. In Russian, for example, there are more than 5 *different* codepages -- DOS, Win, Mac. ISO, KOI8-r(Linux), KOI7- for old Russian PC, and more ... And we use recoding programs to convert simple text from Notepad to ED and from ED to Notepad -- impossible to read Russian comments at all. Regards, Igor Kachan kinz at peterlink.ru