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 <lan...@potsdam.edu> Sent: Tuesday, January 10, 2023 12:55 PM To: Neil C Smith <neilcsm...@apache.org> 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 <neilcsm...@apache.org> Sent: Tuesday, January 10, 2023 12:06 PM To: Christopher C. Lanz <lan...@potsdam.edu> Cc: users@netbeans.apache.org <users@netbeans.apache.org>; its_toas...@yahoo.com <its_toas...@yahoo.com> Subject: Re: [EXTERNAL] Re: font for accented characters On Tue, 10 Jan 2023 at 16:53, Christopher C. Lanz <lan...@potsdam.edu.invalid> 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