-
Notifications
You must be signed in to change notification settings - Fork 6
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
Colorer.exe not producing correct UTF-8 as output #8
Comments
Looks like I get correct UTF-8 if I don't use the -eiutf-8 and -eoutf-8 options when calling Colorer.exe |
hi.
result will be correct. |
So I did some more testing:
So it seems its not the output that is the problem but the input via piping
Thanks for looking into this. jonib |
checked by code, when reading from the stream, the specified encoding parameter is ignored. |
Edit: edit2: jonib |
Now piping UTF-8 seems to work great, thanks. |
I'm using v1.0.2 colorer.exe when testing and I discovered that if viewing a UTF-8 file it works fine, but if outputting it to a file its not properly utf-8 formatted.
After awhile I was able to decode the result and figured what I need to do (using Python)
So basically non-ASCII characters are double encoded to cp1251 and then utf-8.
I made a small Python script that demonstrates it:
jonib
The text was updated successfully, but these errors were encountered: