Use Gedcom_val for the xref in the record start callback too.
[gedcom-parse.git] / gedcom.enc
index 8c2a56b1d0b7de84c0b6a570518375bed22ec160..e8ec5f029416534cae9dbbec15232a5676c7c89e 100644 (file)
@@ -1,8 +1,18 @@
+# $Id$
+# $Name$
+
 # Mapping of charsets for gedcom parsing
-# Each line contains the gedcom name, appended with (LOHI) or (HILO)
-# for 2 byte encodings, and the iconv name of the charset, separated
-# by whitespace
-UNICODE(LOHI)  UTF16LE
-UNICODE(HILO)  UTF16BE
-ASCII          ASCII
-ANSI           CP1252
+# Each line contains (separated by whitespace):
+#   - the gedcom name
+#   - a token identifying the width of characters and the ordering;
+#     currently supported values: 1, 2_LOHI, 2_HILO
+#   - the iconv name of the charset
+
+# First the encodings supported by the GEDCOM standard
+UNICODE                2_LOHI  UNICODELITTLE
+UNICODE                2_HILO  UNICODEBIG
+ASCII          1       ASCII
+ANSEL          1       ANSEL
+
+# Then some very frequently used non-standard encodings:
+ANSI           1       CP1252