Solve the garbage problem in Eclipse TestNG

Open the file in the eclipse eclipse.ini root, increasing -Dfile.encoding = UTF-8, restart Eclipse

 

 But it may cause java file before the Chinese become code, the new file will not be saved. The default encoding the workspace into other-utf-8 (if the default is GBK)

 

Guess you like

Origin www.cnblogs.com/nevereverever/p/12555947.html