Hello everyone,
I've been testing around with MapInfo and Character Sets to try to store Thai data.
MI Pro 10.5 supports ISO8859_1-ISO8859_9, but not 10 or 11, which is what Thai is. There's also no mention of windows-874. I tried changing the TAB file manually, to start with
!table
!version 1000
!charset ISO8859_11
Tested in both 11.0 and 11.5, both start up with an error: "Unsupported character set: ISO8859_11. Unable to open table Test".
Is there any other way to get Thai characters in my MapInfo tables? Possibly to set MI to a "Unicode mode" and manually change the encoding when I need to display something?
P.S.: From version 10.5 the entire CharSet clause is gone from the help file...
Regards,
Jelmer Baas
Speer IT
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
print systeminfo(5)
CharSet clause
Purpose
Specifies which character set MapBasic uses for interpreting character codes.
See the MapInfo Professional User Guide documentation for changes affecting this clause.
Syntax
char_set is a string that identifies the name of a character set; see table below.
Description
The CharSet clause specifies which character set MapBasic should use when reading or writing files or tables. Note that CharSet is a clause, not a complete statement. Various file-related statements, such as the Open File statement, can incorporate optional CharSet clauses.
What Is A Character Set?
Every character on a computer keyboard corresponds to a numeric code. For example, the letter "A" corresponds to the character code 65. A character set is a set of characters that appear on a computer, and a set of numeric codes that correspond to those characters.
Different character sets are used in different countries. For example, in the version of Windows for North America and Western Europe, character code 176 corresponds to a degrees symbol; however, if Windows is configured to use a different character set, character code 176 may represent a different character.
Call SystemInfo(SYS_INFO_CHARSET) to determine the character set in use at run-time.
How Do Character Sets Affect MapBasic Programs?
If your files use only standard ASCII characters in the range of 32 (space) to 126 (tilde), you do not need to worry about character set conflicts, and you do not need to use the CharSet clause.
Even if your files include "special" characters (for example, characters outside the range 32 to 126), if you do all of your work within one environment (e.g., Windows) using only one character set, you do not need to use the CharSet clause.
If your program needs to read an existing file that contains "special" characters, and if the file was created in a character set that does not match the character set in use when you run your program, your program should use the CharSet clause. The CharSet clause should indicate what character set was in use when the file was created.
The CharSet clause takes one parameter: a string expression which identifies the name of the character set to use. The following table lists all character sets available.
You never need to specify a CharSet clause in an Open Table statement. Each table's .TAB file contains information about the character set used by the table. When opening a table, MapInfo Professional reads the character set information directly from the .TAB file, then automatically performs any necessary character translations.
To force MapInfo Professional to save a table in a specific character set, include a CharSet clause in the Commit Table statement.
MapBasic 2.x CharSet Syntax
MapBasic version 2.x supported three character sets: "XASCII", "ANSI" and "MAC". Older programs that refer to those three character-set names will still compile and run in later versions of MapBasic; however, continued use of the 2.x-era character set names is discouraged.
CharSet "XASCII" specifies the same character set as CharSet "CodePage437".
CharSet "MAC" specifies the same character set as CharSet "MacRoman".
When a program runs on Windows, CharSet "ANSI" specifies whatever character set Windows is currently using. Example: When reading a file created by a DOS application, you should specify the "CodePage437" character set, as shown in the following example.
I also searched through the help file for the "WindowsThai" and found no mention at all.
Regards,
Jelmer