duoduobingbing commented on issue #7116:
URL: https://github.com/apache/netbeans/issues/7116#issuecomment-2027439019

   @6PATyCb It's interesting that this causes Tofu characters ⍰ (square boxes) 
instead of question marks (?).
   I can reproduce this when I intentionally mismatch the project's output 
encoding (which on JDK17 and lower is the same as the native encoding) and the 
one in Netbeans.
   
   E.g. launching the Project with no-args on a West European locale with JDK 
17 (output encoding=`cp1252`) and Netbeans 21 with (`-Dstdout.encoding=utf-8`)
   
   Could you try the following?
   
   Execute the following statements inside your project
   ```
           System.out.println("Пример✨️");
           System.out.println(Runtime.version());
           System.out.println("Charset.defaultCharset(): " + 
Charset.defaultCharset());
           System.out.println("file.encoding property:" + 
System.getProperty("file.encoding"));
           System.out.println("native.encoding property:" + 
System.getProperty("native.encoding"));
           System.out.println("sun.jnu.encoding property:" + 
System.getProperty("sun.jnu.encoding"));
           System.out.println("stdout.encoding property:" + 
System.getProperty("stdout.encoding"));
           System.out.println("sun.stdout.encoding property:" + 
System.getProperty("sun.stdout.encoding"));
   
           if (System.console() != null) {
               System.out.println("systemConsole encoding: " + 
System.console().charset());
           }
   ```
   
   And then set `-J-Dsun.stdout.encoding=...`, `-J-Dstdout.encoding=...` and 
`-J-Dfile.encoding=...` to the output of the value of `sun.jnu.encoding` from 
the code block above.
   
   Does this also solve your problem when using Netbeans 21 with JDK17 and the 
new launcher?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to