Beyond Compare powerful, but in the use of Beyond Compare compare some Java or JSP file containing Chinese, obviously in the project is right, but with Beyond Compare opened after the garbled, and looked at a bunch of garbled and uncomfortable. Then how to solve gbk/utf-8 and other characters, code display garbled? This section will explain in detail the method of solving beyond compare Chinese garbled problem.
Method one for session setup
Step one opens the text comparison session interface, and under the "Session" menu, select "Session Settings" as shown in;
Select the session settings sample under the Session menu
Step two in the Open Session Settings dialog box select "Format", in the left-hand side of the encoding rewrite and the right-hand encoding overlay Select GB2312/UTF-8/GBK, which can be selected according to their preferences and the text of their own encode.
Select the encoding format example under Format options
This is only a session, the configured encoding information is only valid for the comparison of this text. The next time you open similar text, you need to reconfigure it. So there's a second way.
Method two file format (permanent configuration)
Step one opens the text comparison session interface, and under the Tools menu, select the file format option, as shown in;
Select File Format sample under the Tools menu
Step two on the right side of the Open File Format dialog box, select the first tab "Convert", set the encoding in the encoding options below, then click Save.
Example of setting encoding under encoding
Above to everyone to explain the solution beyond compare Chinese garbled two methods, two methods can solve garbled problem, method two more convenient, just set one time later, in the comparison file does not need to set up, also will not appear garbled situation. Garbled problem solved, compare files easier, if you want to learn more about the beyond compare to modify the color of the comparison file tutorial, you can refer to beyond compare how to modify the contrast file color.
Beyond Compare Chinese garbled what to do