You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is doing absolutely nothing, open seems to always use UTF-8 regardless of system locale, not sure why your python setup acts differently. But I guess adding encoding to open won't hurt (it's done in the main repo, and we expect everything to be UTF-8).
Godot version
4.1.beta2
godot-cpp version
4.1.beta(be25a50)
System information
windows 10 amd 2500u
Issue description
Python:3.9.0 Scons:4.4.0
When compiling the latest version, there will be the following errors.
When I used git bisect, I found that the error originated from this commit.
Because the default value of push_list(godotengine/godot#75017) has this symbol
Bullet 2022 •
, but gbk does not have it.Run the python code
local.getdefaultlocale()
, it returns'zh_CN', 'cp936'
, so open the file and read it in gbk encoding by default instead of utf8.This method can override the default function.
Another way to fix the problem is by setting environment variables
set PYTHONUTF8=1
The last one is to specify the encoding as utf-8 when opening the file
Steps to reproduce
If your system's default encoding is not cp936, you can set it with the following code.
Then compile the code and you can see a similar error.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: