question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix Runner Log window Chinese and Latin encoding chars on Windows

See original GitHub issue

This is a split from #1892 where the major issue is the garbled output in Output window. As it is now, that Output is OK, but not the Log window.

Actually, the output starts by being OK, but then other test makes it change. See here the text:

20190825 21:45:13.873 :  INFO : Slept 5 seconds
20190825 21:45:13.873 :  INFO : This is normal log: simplified Chinese: 汉语
Ending test:   Chinese 窺ãâé.Chinese Tést.simplified Chinese: 汉语

Starting test: Chinese 窺ãâé.Chinese Tést.Another € testº
20190825 21:45:13.873 :  INFO : ${options} = <selenium.webdriver.chrome.options.Options object at 0x0000027E2F48FDC8>
20190825 21:45:13.873 :  INFO : Creating an instance of the Chrome WebDriver.
20190825 21:45:17.369 :  INFO : &{mobile_emulation} = { deviceName=Galaxy S5 }
20190825 21:45:17.369 :  INFO : Creating an instance of the Chrome WebDriver.
20190825 21:45:19.953 :  INFO : Opening url 'https://www.google.com'
Ending test:   Chinese 窺䣩.Chinese T괴.Another  testڀ

We can see the test name is correctly logged at start (Starting test: Chinese 窺ãâé.Chinese Tést.Another € testº, but then at end the characters are modified and originally shown as hexadecimal.

This is really a corner case of mixed encodings, and as it shows badly on the Log window but not on the Log.html, we leave this for someday 😃.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
spitamatuscommented, Jun 24, 2020

Thank you for quick response. I am attaching a zip which consists of a test suite as .robot file and output from the command line in the form of a .txt file. Test.zip

I have no idea why echo %PYTHONIOENCODING% has the value of %PYTHONIOENCODING%, but when I run the code:

import sys

if __name__ == "__main__":
	print(sys.getdefaultencoding())
	print(sys.getfilesystemencoding())

I get the output:

utf-8
utf-8

And finally, the screenshot of RIDE:

RIDE_screen

0reactions
HelioGuilherme66commented, Jul 6, 2020

Closing because can be tested on soon to be pre-released, v2.0b1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chinese characters SOMETIMES not decoded properly in ...
Chinese characters SOMETIMES not decoded properly in Windows 10 · Press Windows key + X. · Click Control Panel. · Click Clock, Language,...
Read more >
IntelliJ IDEA incorrect encoding in console output
My theory is that your java class file are using "windows-1251" encoding, and you need to set it "UTF-8". looks at the screenshots...
Read more >
Make Windows correctly display characters from languages ...
Do applications in languages like Chinese, French, Spanish, Arabic or Russian have character display issues? Or Windows cannot correctly ...
Read more >
How to fix PuTTY showing garbled characters? [closed]
With SecureCRT: Select Options -> Session Options -> Terminal -> Appearence -> Character encoding -> select: UTF-8. Hope help others like me! –...
Read more >
Code Pages | Alteryx Help
A Code Page (also referred to as Character Set or Encoding) is a table ... ICU does not support the whole list of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found