1

This is my netbeans info. I'm writing an website in Romanian and ăîâ work fine, but ț and ș are display as ?.

My netbeans info

My encoding is set to UTF-8.

Project settings

Every things works when I use simple text editor like notepad++, the script runs and characters are displayed correctly in the browser.

This is what I see in netbeans.

enter image description here

I've tried the most popular answer from here and I've also installed Encoding Support plugin, but the problem still persist. How can I fix this problem?

Encoding Support

  • Just a shot in the dark... Could it be a font issue? – Álvaro González Sep 05 '22 at 08:56
  • 2
    Is your source file also in UTF-8? See [UTF-8 All the ways through](https://stackoverflow.com/questions/279170) – RiggsFolly Sep 05 '22 at 09:09
  • 1
    Open the file in an editor where it looks correct. Then save the file again, making sure that you save it as UTF-8 (do _not_ use "UTF-8 with BOM", as that will cause other issues). Then try and open it again and see if it's OK. You should also read the link @RiggsFolly posted. – M. Eriksson Sep 05 '22 at 09:23
  • @ÁlvaroGonzález I've checked, it is not a font issue. I've used the same font I use in netbeans in notepad++ and ț,ș are displayed properly. – Răzvan Birișan Sep 05 '22 at 09:54
  • @RiggsFolly Yes, it is. The weird thing is that if I type ăîâșț in a file using notepad++, they get displayed in netbeans when I open the file, but I can't insert another ș or ț from keyboard, copy and paste the already available ș or ț works. – Răzvan Birișan Sep 05 '22 at 09:56
  • That doesn't really prove that point, since editors can potentially replace missing glyphs. Eriksson suggested troubleshooting steps that can help with that. – Álvaro González Sep 05 '22 at 09:56
  • @ÁlvaroGonzález I get your point, you're right. But I use JetBrains Mono and I know it has ăîâșț. – Răzvan Birișan Sep 05 '22 at 09:59
  • 1
    @M.Eriksson I did what you suggested, they get displayed properly, but I can't add a new ț or ș from keyboard, I can only use copy and paste to add a new ț or ș. – Răzvan Birișan Sep 05 '22 at 10:04
  • That suggests some problem with keyboard handling in NetBeans. I know nothing about your language, but those specific characters seem to be problematic: https://en.wikipedia.org/wiki/Romanian_keyboard_layout – Álvaro González Sep 05 '22 at 14:43

1 Answers1

0

I've just discovered that this bug was fixed in NetBeans 15.

diacritice