Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

character set of a resource #43

Open
jze opened this issue Aug 5, 2022 · 1 comment
Open

character set of a resource #43

jze opened this issue Aug 5, 2022 · 1 comment

Comments

@jze
Copy link

jze commented Aug 5, 2022

Overview

It seems that the character set of a resource is not taken into account. Here is a simple test case with ISO8859-1 encoding.

URL url = new URL("https://opendata.zitsh.de/frictionless/haltestellen-smartes-dorfshuttle-stand-01-2022.json");
String jsonString =  new Scanner(url.openStream()).useDelimiter("\\A").next();
ObjectNode resourceJson = (ObjectNode) JsonUtil.getInstance().createNode(jsonString);
Resource resource = Resource.build(resourceJson, null, false);
Iterator<String[]> iter = resource.stringArrayIterator();
while(iter.hasNext()) {
    System.out.println(Arrays.toString(iter.next()));
}

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

@iSnow
Copy link
Contributor

iSnow commented Dec 2, 2022

Thanks for raising the issue! First off, sorry for the late answer, I was busy with other stuff and couldn't catch up with Github.

Concerning your issue, I can confirm that it is a valid bug. It doesn't just concern this project but also the tableschema-java project that is used here to read the data. Fixing it will required quite a bit of work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants