-
Notifications
You must be signed in to change notification settings - Fork 14
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
非アスキー文字列が文字化けする #8
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
概要
文字列の中に全角文字があるとunicode code pointに変換される
Source
Output
再現方法
全角文字をinputに入れる
原因
ここの
printFile
で文字化けしていると思われました。しかしencodingのためのオプション等はなく、他に使えそうなメソッドも見つかりませんでした。
printFile
後にdecodingすれば一応解決しそうですが、その場合元から符号化されたデータがあった場合それも戻ってしまうという問題があります(めったにないとは思いますが)。The text was updated successfully, but these errors were encountered: