Skip to content
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

Log chinese error. #93882

Closed
CsloudX opened this issue Jul 3, 2024 · 4 comments · Fixed by #94006
Closed

Log chinese error. #93882

CsloudX opened this issue Jul 3, 2024 · 4 comments · Fixed by #94006

Comments

@CsloudX
Copy link

CsloudX commented Jul 3, 2024

Tested versions

v4.3.dev6.mono.official [89850d5]

System information

Godot v4.3.dev6.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 5GB (NVIDIA; 31.0.15.3623) - AMD Ryzen 9 3900X 12-Core Processor (24 Threads)

Issue description

image
when print chinese, the output window was ok, but the godot.log was error.

Steps to reproduce

run the MRP

Minimal reproduction project (MRP)

logtest.zip

@AThousandShips
Copy link
Member

Please try with beta2, you are two months behind and several improvements have been made since then

@alvinhochun
Copy link
Contributor

Just an observation, the UTF-8 code units of "中文测试" is E4 B8 AD E6 96 87 E6 B5 8B E8 AF 95, which when misinterpreted as Latin-1 is exactly 中æ��æµ�è¯�.

@AThousandShips
Copy link
Member

This might very easily be a windows error with notepad just reading it wrong indeed, the console log doesn't have BOM added afaik

@alvinhochun
Copy link
Contributor

I just tested and I can confirm that Godot is writing the UTF-8 code units of 中��� to the log file itself. So it is not an issue with the text editor used but actually some erroneous encoding conversion inside Godot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Very Bad
Development

Successfully merging a pull request may close this issue.

3 participants