Revision 33204 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileNIO.java
DbaseFileNIO.java | ||
---|---|---|
388 | 388 |
String charSetName = DbfEncodings.getInstance().getCharsetForDbfId(myHeader.getLanguageID()); |
389 | 389 |
if (charSetName == null) |
390 | 390 |
{ |
391 |
charSet = Charset.defaultCharset(); |
|
391 |
charSet = defaultCharset; //Charset.defaultCharset();
|
|
392 | 392 |
// System.out.println("Opening file " + file.getName() + " with languageId = " + myHeader.getLanguageID()); |
393 | 393 |
} |
394 | 394 |
else |
395 | 395 |
{ |
396 | 396 |
// System.out.println("Opening file " + file.getName() + " with encoding " + charSetName); |
397 | 397 |
if (charSetName.equalsIgnoreCase("UNKNOWN")) |
398 |
charSet = Charset.defaultCharset(); |
|
398 |
charSet = defaultCharset; //Charset.defaultCharset();
|
|
399 | 399 |
else{ |
400 | 400 |
try{ |
401 | 401 |
charSet = Charset.forName(charSetName); |
402 | 402 |
}catch (UnsupportedCharsetException e) { |
403 |
charSet = Charset.defaultCharset(); |
|
403 |
charSet = defaultCharset; //Charset.defaultCharset();
|
|
404 | 404 |
} |
405 | 405 |
} |
406 | 406 |
} |
Also available in: Unified diff