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

encoding issue in qio #198

Open
ChristinaXu2017 opened this issue Oct 22, 2020 · 0 comments
Open

encoding issue in qio #198

ChristinaXu2017 opened this issue Oct 22, 2020 · 0 comments

Comments

@ChristinaXu2017
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Every implementation of the Java platform is required to support the following standard charsets: US-ASCII, ISO-8859-1, UTF-8/16/16BE/16LE. Every instance of the Java virtual machine has a default charset, java one-argument constructors of IO class, such as, FileReader, always use the platform default encoding which is generally a bad idea.

The qio is a collection of File reader/writer for our internal files, such as GFF, VCF, MAF etc. So far we used default encoding, but we should set it to UTF-8, due to these internal files including gzip files are pure English character, even the description in BAM file are UTF-8.

Describe the solution you'd like
All constructors in qio use default UTF-8 if it is single argument method; we also allow user to set charset by multi-argument constructors.

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

No branches or pull requests

1 participant