-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Logs streaming API returns non escaped UTF-8 characters #9900
Comments
Hi @Settler! Thanks for reporting this. I see that you're on Windows... do you know if the source data is UTF-16 encoded? That might help narrow down the behavior. |
Hi @tgross. Hmm. I saw Cyrillic OEM 866 encoding in log file |
Ok, so just for clarity, the issue title says there are problems with utf-8 encoded characters but the problem is with non-utf-8 encoding? And is the terminal where you're reading the logs able to decode Cyrillic OEM 866? |
Now when you asked, I'm not sure =) |
Yeah, I tested. It's strange. File encoding is Cyrillic OEM 866. We use .NET Core 3.1 and nlog to write logs.
So, nlog writes to the Console (stdout). That is all my guessings... |
@tgross I have good news. I have talked with our IT guys. And we found new localization settings in Windows Server 2019. If we enable this function then logs with Cyrillic symbols will be written with UTF-8 encoding. |
Great! Glad to hear @Settler! |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Nomad v1.0.0 (cfca640)
Operating system and Environment details
Windows Server 2019
Issue
If the service writes non-ASCII logs into stdout, then frames returned from
/v1/client/fs/logs
will be decoded from Base64 in UI with invalid chars.Looks like this:
� � � � �
I have found this issue and pull request. It looks that fixes took place only in frontend part. They don't fix encoding part on server side which generates Base64 string. It seems that server encodes non-UTF8 chars into Base64 without escaping them and frontend, as a result, decodes them in wrong way.
The text was updated successfully, but these errors were encountered: