Skip to content

Commit

Permalink
Doc: MapInfo: document supported encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jun 24, 2024
1 parent 2a3af36 commit 100b9cf
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
37 changes: 37 additions & 0 deletions doc/source/drivers/vector/mapinfo_encodings.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"ENCODING value","MapInfo charset",description
""""" (empty string)",Neutral,"No character conversions performed."
"ISO-8859-1","ISO8859_1","ISO 8859-1 (UNIX)"
"ISO-8859-2","ISO8859_2","ISO 8859-2 (UNIX)"
"ISO-8859-3","ISO8859_3","ISO 8859-3 (UNIX)"
"ISO-8859-4","ISO8859_4","ISO 8859-4 (UNIX)"
"ISO-8859-5","ISO8859_5","ISO 8859-5 (UNIX)"
"ISO-8859-6","ISO8859_6","ISO 8859-6 (UNIX)"
"ISO-8859-7","ISO8859_7","ISO 8859-7 (UNIX)"
"ISO-8859-8","ISO8859_8","ISO 8859-8 (UNIX)"
"ISO-8859-9","ISO8859_9","ISO 8859-9 (UNIX)"
"EUC-JP","PackedEUCJapaese","UNIX, standard Japanese implementation."
"CP1252","WindowsLatin1",""
"CP1250","WindowsLatin2",""
"CP1256","WindowsArabic",""
"CP1251","WindowsCyrillic",""
"CP1257","WindowsBalticRim",""
"CP1253","WindowsGreek",""
"CP1255","WindowsHebrew",""
"CP1254","WindowsTurkish","Windows Eastern Europe"
"CP950","WindowsTradChinese","Windows Traditional Chinese"
"CP936","WindowsSimpChinese","Windows Simplified Chinese"
"CP932","WindowsJapanese",""
"CP949","WindowsKorean",""
"CP437","CodePage437","DOS Code Page 437 = IBM Extended ASCII"
"CP850","CodePage850","DOS Code Page 850 = Multilingual"
"CP852","CodePage852","DOS Code Page 852 = Eastern Europe"
"CP855","CodePage855","DOS Code Page 855 = Cyrillic"
"CP857","CodePage857",""
"CP860","CodePage860","DOS Code Page 860 = Portuguese"
"CP861","CodePage861","DOS Code Page 861 = Icelandic"
"CP863","CodePage863","DOS Code Page 863 = French Canadian"
"CP864","CodePage864","DOS Code Page 864 = Arabic"
"CP865","CodePage865","DOS Code Page 865 = Nordic"
"CP869","CodePage869","DOS Code Page 869 = Modern Greek"
"(no iconv match)","LICS","Lotus worksheet release 1,2 character set"
"(no iconv match)","LMBCS","Lotus worksheet release 3,4 character set"
8 changes: 7 additions & 1 deletion doc/source/drivers/vector/mitab.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,15 @@ The following layer creation options are supported:
Define the encoding for field
names and field values. The encoding name is specified in the format
supported by :cpp:func:`CPLRecode` (e.g. ISO-8859-1, CP1251, CP1252 ...) and
internally converted to MapInfo charsets names. Default value is ''
internally converted to MapInfo charsets names. Default value is '' (empty string)
that equals to 'Neutral' MapInfo charset.

Currently supported values for the encoding name are:

.. csv-table:: MapInfo encodings
:file: mapinfo_encodings.csv
:header-rows: 1

- .. lco:: DESCRIPTION
:since: 3.1.0

Expand Down
1 change: 1 addition & 0 deletions ogr/ogrsf_frmts/mitab/mitab_imapinfofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ const char *IMapInfoFile::GetCharset() const

// Table is adopted from
// http://www.i-signum.com/Formation/download/MB_ReferenceGuide.pdf pp. 127-128
// NOTE: if modifying this table, please keep doc/source/drivers/vector/mapinfo_encodings.csv in sync
static const char *const apszCharsets[][2] = {
{"Neutral", ""}, // No character conversions performed.
{"ISO8859_1", "ISO-8859-1"}, // ISO 8859-1 (UNIX)
Expand Down

0 comments on commit 100b9cf

Please sign in to comment.