Skip to content

Read CSV and JSON files as UTF-8 regardless of platform charset - #175

Merged
Quafadas merged 1 commit into
mainfrom
fix/csv-utf8-codec
Oct 26, 2026
Merged

Quafadas merged 1 commit into
mainfrom
fix/csv-utf8-codec

Conversation

@Quafadas

Copy link
Copy Markdown
Owner

Source.fromFile / fromResource / fromURL fell back to the JVM default charset. On Windows with JDK 17 and earlier that is windows-1252, so non-ASCII text was garbled and a UTF-8 BOM arrived as "", which the BOM strip never matched. Pass Codec.UTF8 explicitly at every read, both in the compile-time macros and the runtime iterators.

Source.fromFile / fromResource / fromURL fell back to the JVM default
charset. On Windows with JDK 17 and earlier that is windows-1252, so
non-ASCII text was garbled and a UTF-8 BOM arrived as "", which the
BOM strip never matched. Pass Codec.UTF8 explicitly at every read, both
in the compile-time macros and the runtime iterators.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Quafadas
Quafadas merged commit 03940cf into main Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants