tableschema-java icon indicating copy to clipboard operation
tableschema-java copied to clipboard

Character set of a Table's DataSourceFormat can't be set

Open iSnow opened this issue 3 years ago • 0 comments

Test is TableEncodingTests::createTableFromIso8859() (currently disabled) and is an adaptation of https://github.com/frictionlessdata/datapackage-java/issues/43 (as the datapackage code relies on tableschema to read resources)

The following fails:

File testDataDir = getTestsuiteDataDirectory();

Table table = Table.fromSource(new File("csv/encodings/iso8859.csv"), testDataDir, null, null);

Iterator<Object[]> iter = table.iterator();
Object[] row = iter.next();
Assertions.assertEquals("Réunion", row[0]);

What needs to be done is ensure the code in TableDataSource concrete implementations can be configured to read from different encodings.


Please preserve this line to notify @iSnow (lead of this repository)

iSnow avatar Dec 05 '22 11:12 iSnow