Solve the garbled code in the console after TomCat startup by adding the registry
Premise: the server.xml file under apache-tomcat-8.5.45\ conf\ this path has been configured with encoding format
1. Use the win key + R, and enter regedit to enter the registry
2. Find the registry HKEY_CURRENT_USER-- > HKEY_CURRENT_USER\ Console-- > HKEY_CURRENT_USER\ Console\ TomCat-- > CodePage-- > modify the numerical data to decimal 65001
3. If there are no TomCat and CodePage in part 2, create them by yourself. Note: TomCat (do not make an error in the name) and PageCode (do not make an error in the name. The new one is the value of the bit of DWORD32).
4. Click modify to change the value to 65001 of the decimal bit after the creation.
Finished, the modification was successful!