Hello,

Thanks for responding.

I believe the file encoding is UTF-8: the dialog

Project Properties <name>/ sources

has a box labeled "encoding", and it is set to UTF-8.

I have added -J-Dfile.encoding=UTF-8  to netbeans.conf, and then, of course, I 
restarted Netbeans

System.out.println("ī") produces a question mark as the output. Same for ā

A StackOverflow source said that the Program Properties/General page includes 
an "encoding" entry. There is no such entry in my installation (Netbeans 16 on 
WIndows 10). The only mention of "encoding" in Project Properties is under 
"sources". I can find no mention of it in Tools/options, either in "editor", 
"fonts & colors", or anywhere else.


Chris Lanz

340 Dunn Hall, SUNY Potsdam

lan...@potsdam.edu

315 268 1547




________________________________
From: Mark Eggers <its_toas...@yahoo.com.INVALID>
Sent: Monday, January 9, 2023 2:02 PM
To: users@netbeans.apache.org <users@netbeans.apache.org>
Subject: [EXTERNAL] Re: font for accented characters

This message did not originate from SUNY Potsdam or one of its trusted senders. 
Do not open attachments, click on links, or provide your credentials if the 
source is suspicious.


Hi Chris,

A quick question:

1. Is your file encoding UTF-8?

At least for NetBeans 15, the configuration file is located in wherever
you installed NetBeans\etc. It's called netbeans.conf.

In my netbeans.conf, I've added  -J-Dfile.encoding=UTF-8 to
netbeans_default_options.

I haven't tried this with NetBeans 16 yet (upgrade today most likely),
but several people at $work have used prior versions of NetBeans and
have added characters with diacritics.

Using the Character Map and copying the result into a text file worked
on NetBeans 15. An acute accent e showed up in a text file, was saved,
opened, and the diacritic was displayed properly.

The character showed up properly in other UTF-8 aware editors.

. . . just my two cents
/mde/

On 1/9/2023 10:32 AM, Christopher C. Lanz wrote:
> Hello,
>
> I am trying to use Latin vowels with macrons in Netbeans 16 in Windows 10. My 
> searches in such places as StackOverflow have yielded advice, but I have yet 
> to find the right thing.
>
> One possibility mentioned is just to switch to a font that supports accented 
> characters, such as 'e' with accent grave - does anyone know which fonts I 
> should try?
>
> Another set of advice suggests changing the netbeans.conf file, but it has 
> moved since the advice I found was written. How do I get to it in Windows? I 
> am also unable to find the default_options file.  ??
>
> Thanks
>
>
> Chris Lanz
>
> 340 Dunn Hall, SUNY Potsdam
>
> lan...@potsdam.edu
>
> 315 268 1547
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to