RSyntaxTextArea
RSyntaxTextArea copied to clipboard
Chinese characters do not render correctly
Description Chinese characters render as question marks.
Steps to Reproduce Specific steps to reproduce the behavior:
- Let RSTA render chinese text in some way (in my case, loading it from a file)
- 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: https://github.com/ThexXTURBOXx/Luyten/issues/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: https://github.com/bobbylight/RSyntaxTextArea/compare/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 https://github.com/ThexXTURBOXx/Luyten/issues/2. If you need some chinese text to test this on your end, here you go: Test.txt