Closed Caesar454905970 closed 2 months ago
This seems to be a godot-cpp issue which should be created in that repository.
Are you using Visual Studio? The msvc compiler needs UTF8-BOM encoding to compile correctly with CJK characters.
String(const char *from)
expects latin1. You can use U"字符串"
instead.
godot::String message = U"你好,世界!"; is successeful !
thanks you so much!
This seems to be a godot-cpp issue which should be created in that repository.
Are you using Visual Studio? The msvc compiler needs UTF8-BOM encoding to compile correctly with CJK characters.
maybe wrong.
godot::String message = U"你好,世界!"; is successeful ! thanks you so much!
Glad you worked it out!
Closing this issue.
Tested versions
godot-cpp4.3
System information
Window10 godot-cpp4.3
Issue description
Steps to reproduce
void waveformRendering::_draw() { // 设置文本位置 // 获取当前视口的大小 Vector2 viewport_size = get_viewport_rect().size;
Minimal reproduction project (MRP)
src.zip