In the eclipse 3.4 gangmede development environment of J2EE, a gwt-ext project is created, modify the form-> simple source code in GWT-ext 2.0.6 showcase demo to write a logon box with the user name and password. The project runs normally, but the Chinese font on the Web page is garbled.
The cause of garbled code is: Eclipse project default encoding format is GBK, and GWT-ext related configuration using UTF-8 encoding format.
After you change the encoding format of the project to UTF-8 (Project-> properties-> text file encoding-> Other, select UTF-8), the Chinese font is correctly displayed on the page after the program runs.
But there is a need to pay attention to the problem: the engineering encoding format from GBK to UTF-8, the original normal display of the Chinese will be garbled display, need to re-enter the Chinese in the new encoding format.
Modify the default encoding format of the eclipse project: WINDOW> perferences> General> workspace> text file encoding> Other.