Revision 33204 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dbf/DbfEncodings.java

View differences:

DbfEncodings.java
6 6
public class DbfEncodings {
7 7
	private static DbfEncodings theInstance = null;
8 8
	private final int [] dbfIds = {0x00, 0x02, 0x03, 0x04, 0x64, 0x65, 0x66, 0x67, 0x6A, 0x6B, 0x78,
9
			0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x96, 0x97, 0x98, 0xC8, 0xC9, 0xCA, 0xCB, 0x99};
9
			0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x96, 0x97, 0x98, 0xC8, 0xC9, 0xCA, 0xCB, 0xF7, 0xF8, 0x99};
10 10

  
11 11
	private Hashtable<Byte, String> dbfId2charset;
12 12

  
......
105 105
		case (0xCB):
106 106
			cCP = "ISO-8859-7"; //"Codepage 1253 Greek Windows";
107 107
			break;
108
		case (0xF7):
109
			cCP = "ISO-8859-1"; //"(inventado)";
110
			break;
111
		case (0xF8):
112
			cCP = "ISO-8859-15"; //"(inventado)";
113
			break;
108 114
		case (0x99):
109 115
			cCP = "UTF-8"; //"utf8 (inventado)";
110 116
			break;
......
145 151
		if (s.equalsIgnoreCase("Cp1254")) dbfId = 0xCA;
146 152
		if (s.equalsIgnoreCase("windows-1254")) dbfId = 0xCA;
147 153
		if (s.equalsIgnoreCase("ISO-8859-7")) dbfId = 0xCB;
154
		if (s.equalsIgnoreCase("ISO-8859-1")) dbfId = 0xF7; // invented
155
		if (s.equalsIgnoreCase("ISO-8859-15")) dbfId = 0xF8; // invented
148 156
		if (s.equalsIgnoreCase("UTF-8")) dbfId = 0x99;
149 157
		System.out.println("getDbfIdForCharset " + s + " dbfId = " + dbfId);
150 158
		

Also available in: Unified diff