Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

DataFile#getCSVReader ignores DataFileEncoding #108

Open
kflorian opened this issue Jul 9, 2021 · 0 comments
Open

DataFile#getCSVReader ignores DataFileEncoding #108

kflorian opened this issue Jul 9, 2021 · 0 comments

Comments

@kflorian
Copy link

kflorian commented Jul 9, 2021

In org.n52.sos.importer.feeder.DataFile#getCSVReader, a new FileReader is instantiated, without specifying a charset, causing the system default charset to be used for reading the datafile contents, instead of the charset specified by the DataFileEncoding in the configuration:

	public CsvParser getCSVReader() throws IOException {
		LOG.trace("getCSVReader()");
		final FileReader fr = new FileReader(file);
		final BufferedReader br = new BufferedReader(fr);
                ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant