Closed 0xn0ne closed 6 years ago
@0xNone
As mentioned in https://github.com/getgauge/gauge-python/issues/86#issuecomment-396228074 please use # -*- coding: utf-8 -*-
to tell explicitly that utf-8 encoding is used.
Thanks your reply. I know this way, but it doesn't work in Windows system. This solution seems to work in Python 2.x.
@0xNone I ran this on Windows 10 Pro
with Python 3.7 and this works as expected. Which version of Windows are you on?
em...
I think this should be the reason why the system default language, because in Windows, when the regional language is selected as Chinese, the system code will change to GBK
And when I changed the area to English, it works fine now. Thank you again for your answer.
Expected behavior
System: windows 10 Build 17134 Local Python: Python 3.6.5 :: Anaconda, Inc.
When I finish the specification, I want the program to run. But this problem occurred.
Actual behavior
This problem occurred when I tried to start the program.
I went to check my script and found that I wrote Chinese notes in the script, such as this:
Steps to reproduce
gauge init python
command.py
script, Such as the followinggauge run
command or thegauge run specs /
Gauge version