You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "yuedaxia76 (via GitHub)" <gi...@apache.org> on 2024/02/23 07:55:12 UTC

[I] NetBeans 21 console Chinese characters are garbled [netbeans]

yuedaxia76 opened a new issue, #7098:
URL: https://github.com/apache/netbeans/issues/7098

   ### Apache NetBeans version
   
   Apache NetBeans 21 release candidate
   
   ### What happened
   
   System.out.println("中文a");   result is :中文a
   in netbeans 21 it is:����a
   
   Even after setting   set -J-Dfile.encoding=UTF-8 ,-J-Dfile.encoding=GBK  ,there are still garbled characters
   
   ### Language / Project Type / NetBeans Component
   
   maven project
   
   ### How to reproduce
   
   run 👍 
       public static void main(String[] argm) throws Exception {
           System.out.println(System.getProperty("file.encoding"));
           System.out.println(Charset.defaultCharset());
           //System.setProperty("console.encoding", "UTF-8");
           System.out.println("中文a");
           System.setOut(new PrintStream(System.out,true,"UTF-8"));
           System.out.println("中文a");
           
           
       }
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 20
   
   ### Operating System
   
   windows 10
   
   ### JDK
   
   test in 17、21
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] NetBeans 21 console Chinese characters are garbled [netbeans]

Posted by "yuedaxia76 (via GitHub)" <gi...@apache.org>.
yuedaxia76 commented on issue #7098:
URL: https://github.com/apache/netbeans/issues/7098#issuecomment-1962219423

   set -J-Dstdout.encoding=GBK in netbeans.conf  is ok 。 Old version ready to use out of the box, no need to set up。


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] NetBeans 21 console Chinese characters are garbled [netbeans]

Posted by "yuedaxia76 (via GitHub)" <gi...@apache.org>.
yuedaxia76 commented on issue #7098:
URL: https://github.com/apache/netbeans/issues/7098#issuecomment-1960879171

   ![test result](https://github.com/apache/netbeans/assets/12583400/5c5fdfe6-cc6f-4dde-b640-65b997563f90)
   


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] NetBeans 21 console Chinese characters are garbled [netbeans]

Posted by "yuedaxia76 (via GitHub)" <gi...@apache.org>.
yuedaxia76 commented on issue #7098:
URL: https://github.com/apache/netbeans/issues/7098#issuecomment-1960887624

   ![test reult](https://github.com/apache/netbeans/assets/12583400/45c48d28-53a2-40f1-818c-667854cdcf00)
   


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] NetBeans 21 console Chinese characters are garbled [netbeans]

Posted by "yuedaxia76 (via GitHub)" <gi...@apache.org>.
yuedaxia76 commented on issue #7098:
URL: https://github.com/apache/netbeans/issues/7098#issuecomment-1960874985

   I user netbeans 21 release version.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] NetBeans 21 console Chinese characters are garbled [netbeans]

Posted by "yuedaxia76 (via GitHub)" <gi...@apache.org>.
yuedaxia76 commented on issue #7098:
URL: https://github.com/apache/netbeans/issues/7098#issuecomment-1962179605

   set  -J-Dstdout.encoding=utf-8  in netbeans.conf or set project run vm param -Dstdout.encoding=utf-8  no effect。 Old version ready to use out of the box, no need to set up。


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] NetBeans 21 console Chinese characters are garbled [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net closed issue #7098: NetBeans  21 console Chinese characters are garbled
URL: https://github.com/apache/netbeans/issues/7098


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


Re: [I] NetBeans 21 console Chinese characters are garbled [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #7098:
URL: https://github.com/apache/netbeans/issues/7098#issuecomment-1961707617

   You need to set `stdout.encoding` - see also #4771 


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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