Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

NX garbled Chinese With Swing Jtable

[ Edited ]

I'm writing a attribute tool for nx8.5 .I use Java Swing for UI framework. Everything was right in IDE,but when i put it into NX8.5, all the Chinese charactors was messy.I tried to encode the string  with gb2312, utf8,and it not working.

Sorry, as you can see ,only the Jtable has the problem,maybe the cause was the data i write into it?

捕获.PNG

right.png

 

1 REPLY
Solution
Solution
Accepted by topic author zssng
‎12-27-2016 09:34 PM

Re: NX garbled Chinese With Swing Jtable

Problem solved! I use Gson parse the config file,maybe my system's default encoding is GBK,while the config file was encoding with UTF-8,Gson use the default encoding so get this problem. Thanks everyone,I hope this will help somebody in someday!