You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding some unicode characters to a text editor can cause either a change in the font of the line in which the character is added, or the character to not be displayed correctly.
To Reproduce
Open any text file in a text editor. My demonstration is with a .java file, but in the link above a .txt file is also used. Type text into that file, for example: (" abc ").
Copy the character ⭳ (\u2B73).
Paste it at the start of the string, the character is shown correctly, but the string changes its font:
Paste it at the end of the string, the character is shown incorrectly, but the string does not change font:
Copy a non-problematic character, like ← (\u2190).
a. Paste it between ⭳ and abc, the characters are shown correctly and the font does not change: ,
b. Paste it at the edge, and the problem resurfaces:
The same issue occurs with the character ⮠ (\u2BA0).
Expected behavior
The characters will show correctly and the string will not change its font regardless of the positions those characters appear at.
Environment:
Select the platform(s) on which the behavior is seen:
Only tested on Windows.
All OS
Windows
Linux
macOS
Additional OS info (e.g. OS version, Linux Desktop, etc)
Windows 10
JRE/JDK version
21 and 22
Version since
Eclipse 2024-03, haven't tested older versions.
Text file encoding doesn't seem to matter. Tested UTF-8, UTF-16, UTF-16BE, UTF-16LE and ISO-8859-1.
The text was updated successfully, but these errors were encountered:
jukzi
changed the title
Some unicode characters in a String cause it to be rendered incorrectly
[win] Generic TextEditor: Some unicode characters cause text to be rendered incorrectly
May 13, 2024
Describe the bug
Redirected from Eclipse JDT: eclipse-jdt/eclipse.jdt.ui#1403
Adding some unicode characters to a text editor can cause either a change in the font of the line in which the character is added, or the character to not be displayed correctly.
To Reproduce
Open any text file in a text editor. My demonstration is with a .java file, but in the link above a .txt file is also used. Type text into that file, for example: (
" abc "
).Copy the character
⭳
(\u2B73
).←
(\u2190
).a. Paste it between
⭳
andabc
, the characters are shown correctly and the font does not change: ,b. Paste it at the edge, and the problem resurfaces:
The same issue occurs with the character
⮠
(\u2BA0
).Expected behavior
The characters will show correctly and the string will not change its font regardless of the positions those characters appear at.
Environment:
Only tested on Windows.
Additional OS info (e.g. OS version, Linux Desktop, etc)
Windows 10
JRE/JDK version
21 and 22
Version since
Eclipse 2024-03, haven't tested older versions.
Text file encoding doesn't seem to matter. Tested UTF-8, UTF-16, UTF-16BE, UTF-16LE and ISO-8859-1.
The text was updated successfully, but these errors were encountered: