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

Fix: Write all bytes of UTF-8 String #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ckesc
Copy link

@ckesc ckesc commented Mar 22, 2018

According to JavaDoc RandomAccessFile.writeBytes() writes each character in the string by discarding its high eight bits. This is ok for latin charactes, but it corruptes non-latin charactes. For example: russian charactes.

That's why I used RandomAccessFile.write() and String.getBytes("UTF-8")) to write all bytes of charactes

This PR fixes these issues:
#1
#4

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.

1 participant