Open GabrielLins64 opened 1 year ago
Unicode parsing error, some characters were replaced with � (U+FFFD)
I noticed the error when running tests. Here are the backtraces:
Most likely, this is caused by some of the system paths or environment variables being not in UTF-8 encoding.
I noticed the error when running tests.
Some tests deliberately include invalid Unicode sequences, and expected to trigger this error.
Some tests deliberately include invalid Unicode sequences, and expected to trigger this error.
I thought that in this case we temporarily disable error printing (but the test framework should check the output).
I thought that in this case we temporarily disable error printing (but the test framework should check the output).
Test should suppress printing, it's done in String tests, but not JSON tests (also at least on test is wrong), and print error itself is using wrong encoding.
Update: I'm still having the issue in the version 4.2.1
Most likely, this is caused by some of the system paths or environment variables being not in UTF-8 encoding.
I noticed the error when running tests.
Some tests deliberately include invalid Unicode sequences, and expected to trigger this error.
I've checked my project path, godot path and the related environment variables but I couldn't notice anything unusual:
Godot path: /home/gabriellins/Applications/godot/Godot_v4.2.1-stable_linux.x86_64
Project path: /home/gabriellins/Study/Game_Dev/Godot/Projects/Primeiro_Projeto
Related environment var: GODOT4=/home/gabriellins/Applications/godot/Godot_v4.2.1-stable_linux.x86_64
To reproduce:
Output:
Tested in: Ubuntu 20.04.6 LTS
This error happens if you copy something from the Godot editor into visual studio. the fact is that the Godot editor uses UTF-8 characters as tabs, and when the user inserts them into visual studio it converts them into unreadable characters, you need to clear the file to which this error refers from all unreadable characters.
I also discovered that when there are non-Latin characters, for example in comments, this error occurs. As soon as I delete them the error disappears
@GabrielLins64 Maybe I'm a bit late to the conversation but i faced the exact same issue. After debugging the editor, i found that the reason for the error occurring was the loading of the system certificates. I had a bad certificate content in my /etc/ssl/certs/ca-certificates.crt file. Just make sure that you update the certificates file (sudo update-ca-certificates). Afterwards, the file is not in UTF-8 but does not contain any invalid chars and therefor your problem should be solved. Let me know if this has helped if you read this.
Steps for reproduction: Add self signed certificate to ca-certificates.crt but without update-ca-certificates afterwards.
Hello community,
I was able to fix these issues by simply saving with Visual Studio Code forcing the encoding UTF-8
Make sure to select this option.
Of course, this only helps for text-based files (CSV, code, ...)
I hope this helps
Godot version
4.1.1 - .NET (with C# support)
System information
Linux Ubuntu 20.04 - Godot Engine 4.1.1 - .NET (with C# support)
Issue description
I've installed all the pre-requisites including C#, .NET 6.0 and Mono. I didn't touch a single configuration on the engine, but the fresh installation when creating any new project throws this output (without having to build):
I can use the engine and build the project, but I can't figure out why this errors are appearing.
Steps to reproduce
Minimal reproduction project
Project with only
icon.svg
,icon.svg.import
andproject.godot