Skip to content

The symbol U2022 Bullet cause compilation error when system code page is 936 and use msvc. #1174

@saierXP

Description

@saierXP

Godot version

4.1

godot-cpp version

4.1

System information

windows 10 Chinese language

Issue description

There are U2022 character • in RichTextLabel, which is not compatible with GBK encoding.
There will be a warning c4819 indicating that there are characters that cannot be represented on the current Code page 936(default in Chinese system).Then it leads to a series of compilation errors.

XYplorer_yOdHHDjryV

Adding /source-charset:utf-8 to cxxflags can solve the problem.

vivaldi_e0B2d6oveK

Steps to reproduce

1.Code page is 936(Using chcp 65001 command may still cause errors, but I can't remember clearly).
2.Using msvc compiler.

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions