extended characters
Bruce Easton
bruce at stn.com
Tue Sep 11 11:17:58 PDT 2007
I recently imported a file (via readline command in clerk)
from an XML file that states at the end of the top line:
"encoding="UTF-8". I then write out the line as-is to
a record.
In filePro (SCO 5.14), the line is stored with the funny
characters here and there. (The data has names in several
different languages including eastern & western european
and middle eastern as well.)
I coded an errorbox to come up on @key that will scan
each line character by character so that I can see the
decimal values of each character that is above 127.
When I am on, for instance, the third character in the
expression "President du commandement" which I'm thinking
must be French, and therefore an e with an accute accent
(avec accent aigu), my errorbox is telling me [via my
code: asc(mid(xx,currpos,"1"))] for two characters in
a row that filePro is storing this as decimal 195 followed
by decimal 169.
I don't see how these decimal numbers correlate to any
common character set. Am I missing something obvious?
(The only funny part of this was was that when I'd scroll
down thru the data, it would hit some combination of
the extended chars and send a print job to the system
printer. Who knows what else it did on the system.)
Bruce
Bruce Easton
STN, Inc.
More information about the Filepro-list
mailing list