Fw: [EXTERNAL] Re: font for accented characters
see below - I neglected to reply to the list. . . . Chris Lanz 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Christopher C. Lanz Sent: Tuesday, January 10, 2023 12:55 PM To: Neil C Smith Subject: Re: [EXTERNAL] Re: font for accented characters Hello, Thanks again. Adding either of your suggestions (eg. -J-Dsun.stdout.encoding=utf-8, or on a recent JDK -J-Dstdout.encoding=utf-8) to .conf both had no obvious, immediate effect, but having added those items, and then running with the line "System.setOut(new PrintStream(System.out, true, "UTF8"));" and finally the output of System.out.print() of an accented character is correct! Now I have to test other aspects of using these characters, but at least this one part of the problem is possibly solved. We'll see if these changes have some undesirable side-effects as I work for the next few days. Thanks so much! Chris Lanz, Assoc. Professor Emeritus Department of Computer Science 340 Dunn Hall, SUNY Potsdam lan...@potsdam.edu 315 268 1547 From: Neil C Smith Sent: Tuesday, January 10, 2023 12:06 PM To: Christopher C. Lanz Cc: users@netbeans.apache.org ; its_toas...@yahoo.com Subject: Re: [EXTERNAL] Re: font for accented characters On Tue, 10 Jan 2023 at 16:53, Christopher C. Lanz wrote: > 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 ā Then it's possibly not (just) file encoding you want to set, but also system out encoding (eg. -J-Dsun.stdout.encoding=utf-8, or on a recent JDK -J-Dstdout.encoding=utf-8) See also https://github.com/apache/netbeans/issues/4771 and related. You can always set command line arguments like this in the Windows shortcut as well as the netbeans.conf file. I find that better as you can set up multiple shortcuts. You can also consider setting the environment variable mentioned in that issue and linked - JAVA_TOOL_OPTIONS Or it's the font .. This is all a little confusing and annoying if you ask me, but then that's Windows for you! :-) Best wishes, Neil - 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
Re: [EXTERNAL] Re: font for accented characters
On Tue, 10 Jan 2023 at 16:53, Christopher C. Lanz wrote: > 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 ā Then it's possibly not (just) file encoding you want to set, but also system out encoding (eg. -J-Dsun.stdout.encoding=utf-8, or on a recent JDK -J-Dstdout.encoding=utf-8) See also https://github.com/apache/netbeans/issues/4771 and related. You can always set command line arguments like this in the Windows shortcut as well as the netbeans.conf file. I find that better as you can set up multiple shortcuts. You can also consider setting the environment variable mentioned in that issue and linked - JAVA_TOOL_OPTIONS Or it's the font .. This is all a little confusing and annoying if you ask me, but then that's Windows for you! :-) Best wishes, Neil - 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
Re: [EXTERNAL] Re: font for accented characters
Hello, Thanks for responding. I believe the file encoding is UTF-8: the dialog Project Properties / 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 Sent: Monday, January 9, 2023 2:02 PM To: 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
Re: font for accented characters
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
font for accented characters
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