Skip to content

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

@iSnow

Description

@iSnow

Test is TableEncodingTests::createTableFromIso8859() (currently disabled) and is an adaptation of frictionlessdata/datapackage-java#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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions