I am making a program in Delphi 7, that is supposed to encode a unicode string into html entity string.
For example, "ABCģķī
" would result in "ABCģķī
"
Now 2 basic things:
- Delphi 7 is non-Unicode, so I can't just write unicode chars directly in code to encode them.
- Codepages consist of 255 entries, each holding a character, specific to that codepage, except first 127, that are same for all the codepages.
So - How do I get a value of a char, that is in 1-255 range?
I tried Ord(Integer)
, but it also returns values way past 255. Basically, everything is fine (A returns 65 an so on) until my string reaches non-Latin unicode.
Is there any other method for returning char value? Any help appreciated
In case I understood the OP correctly, I'll just leave this here.