You can also easily convert a UTF-8 encoded file to Windows by using a
good text editor (like UltraEdit).
Peter Horsbøll Møller
GIS Developer, MTM GeoInformatics
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
Tel +45 6311 4900
Direct +45 6311 4908
Mob +45 5156 1045
Fax +45 6311 4949
E-mail p...@cowi.dk
http://www.cowi.dk/gis
UTF-8 characters are encoded as 1 - 4 bytes, depending on their value.
US ASCII, i.e. 7 bit characters, are encoded as is (i.e. 1 byte), and 8
bit characters are encoded as a double byte.
It's described in detail here - http://en.wikipedia.org/wiki/UTF-8
If MapInfo 9 supports UTF-8 as Peter says, it's entirely due to the
implementation of the external XML library. But it's unfortunately not
exposed for use in Mapbasic (yet), as far as I know.
It would have been nice, now that MapInfo were making a non-backward
compatability break in the data format anyway, if they'd introduced
storing texts as Unicode in the DAT file in v9. Even UTF-8 would have
been an improvement.
Best regards / Med venlig hilsen
Lars I. Nielsen
GIS & DB Integrator
GisPro
Bill Thoen skrev:
The "U" in UTF does actually stand for Unicode. Unicode is a character
representation system and UTF-8 is one of several system to encode it in
a (mostly) compact way. You're right that ACSII is essentially "pass
thru". So, to support a UTF-8 encoded data set fully, Pro would need to
be able to decode UTF-8 and then do something with the content which (in
all probability with a global gazetteer) will utilise Unicode
characters. The best Pro can do (and I have not played with v9.0 yet -
still on the shelf) is represent characters that are native to the
Windows version (or deceived with "AppLoc") and simplify the rest. For
example, run Pro in Japanese and you will loose all Western Europe
charset accents.
The trick to get UTF-8 data in to Pro is to go via Access. We have
Japanese and others working here, but until full Unicode support is
added (with all the compatibility headaches associated with that), you
will not see all the character sets of the world running in a single Pro
session. If that has changed in v9.0, as a vendor of global data, I will
be delighted!
Regards,
Warren Vick
Europa Technologies Ltd.
http://www.europa-tech.com
-----Original Message-----
From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On
Behalf Of Lars I. Nielsen (GisPro)
Sent: 24 January 2008 18:55
To: mapi...@googlegroups.com
Subject: [MI-L] Re: How to open a textfile in UNICODE UTF-8 format in
MapInfo Pro 9.0?