简体   繁体   中英

Java and unicode

I'm a newbie in java and I'm having problems with non-ascii characters. In netbeans I made GUI for my java app. When i run that app from netbeans, everything is working fine, but when I run standalone .jar file, non-ascii chars are not shown correctly.

Thanks for any possible solutions or guidance.

My guess is that you are running command line application. In this case, you may be running it in terminal window that can't show unicode properly. In NetBeans it works because console output is shown in the IDE window that knows how to display it correctly.

If I am correct in my assumption, you will need to configure your terminal properly and that depends on the operating system and UI manager.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM