Arabic Characters Not Displaying correctly in Code Editor
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 22
### What happened
There is an issue with the code editor (from version 11 til 22)where Arabic characters do not display correctly. Specifically, if the font used in the editor does not support Arabic characters, they appear as squares. This behavior is different from other editors like IntelliJ IDEA, where Arabic characters display correctly even if the font does not support them (e.g., using JetBrains Mono).
Just like so:
- for instance copy this text and paste it: `إجمالي العوائد`

### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
- Arabic characters should display correctly regardless of the font's support for Arabic, similar to behavior in VS Code & IntelliJ IDEA
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Manjaro Linux
### JDK
All of JDK versions, jdk8 to jdk22
### Apache NetBeans packaging
Apache NetBeans provided installer, Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by reproducing the issue in the NetBeans code editor on Manjaro with an Arabic string such as `إجمالي العوائد` and a font that lacks Arabic support. Compare the current squares with the requested fallback behavior seen in VS Code and IntelliJ IDEA; done means Arabic characters display correctly in the editor across the reported JDK versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100