cancel
Showing results for 
Search instead for 
Did you mean: 

NX garbled Chinese With Swing Jtable

Valued Contributor
Valued Contributor

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

Re: NX garbled Chinese With Swing Jtable

Valued Contributor
Valued Contributor

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!