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

Chinese characters do not render correctly #530

Open
ThexXTURBOXx opened this issue Jan 21, 2024 · 3 comments
Open

Chinese characters do not render correctly #530

ThexXTURBOXx opened this issue Jan 21, 2024 · 3 comments

Comments

@ThexXTURBOXx
Copy link
Contributor

Description
Chinese characters render as question marks.

Steps to Reproduce
Specific steps to reproduce the behavior:

  1. Let RSTA render chinese text in some way (in my case, loading it from a file)
  2. The characters render as unknown characters (similar to �)

Expected behavior
The chinese characters should be shown as usual

Actual behavior
The characters render as unknown characters (similar to �)

Screenshots
See issue at my repo: ThexXTURBOXx/Luyten#2

Java version
Tested myself on Java 8 and Java 17

Additional context

Chinese characters were working fine in 3.2.0, but they do not work in 3.3.0 (and newer).
I have searched within the changes between the two versions: 3.2.0...3.3.0
And I suspect that adding these lines is the culprit, however I am not entirely sure and have not tested this properly.

This issue was reported to me via ThexXTURBOXx/Luyten#2. If you need some chinese text to test this on your end, here you go: Test.txt

@bobbylight
Copy link
Owner

Are you using a custom Theme? How is the RSTA initialized as far as colors and fonts are concerned?

@ThexXTURBOXx
Copy link
Contributor Author

Luyten only uses built-in Themes, loaded via their respective XML file, as seen here.
Actually applying the Theme and Font happens here.
It is worth mentioning that one can also set the Font during runtime, as seen here. However, I have not yet tested re-setting the font when Chinese text is currently being displayed.

@Mgazul
Copy link

Mgazul commented May 6, 2024

After testing, the problem is related to Theme. You need to switch the idea theme once before Chinese can be displayed correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants