apache / apache/netbeans

Arabic Characters Not Displaying correctly in Code Editor

Open
#7,591 0 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage
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: `إجمالي العوائد`

![Screenshot_20240717_161850](https://github.com/user-attachments/assets/0b5b6448-4920-4a76-9a09-77af4696f23e)

### 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.