In the Ubuntu system, there are users who have encountered garbled problems after setting up the Demo program under tomcat. After inserting the Chinese parameters of the input form into the database, it will display garbled characters. What is going on? What should I do if there is Chinese garbled on the website created by Tomcat under Ubuntu?
The essence of garbled characters is because the character set is not uniform. If the content character encoding and server encoding sent by your web browser to the server are inconsistent, then garbled characters will appear.
Solution:
(1) First unify the character encoding of the Linux server, unified configuration is utf-8.
(2) Configuration profiles tomcat server.xml, the
is configured to:
(3) mysql configuration database my.cnf, the The default character set is set to utf-8. Create the database after setting the database character set. Otherwise, the database character set information is inconsistent before and after, which will cause an insertion error.
The above is the solution to the Chinese garbled text created by Tomcat under Ubuntu. It only needs the simple steps of the above three steps to solve the garbled problem of Linux.
In the Ubuntu system, many users will build more simulators for testing purposes. I
GIT has replaced SVN for most Linux users because of its more convenient operation. However, in the
In the CentOS system, most of the command systems have their own, but some commands
If the head command is used to view the header of the file, then the tail command i
What if CentOS can't use the scp command?
Steps to install Kali system on a virtual machine
Linux installation of Nodejs three methods
Linux disk failure causes the system to run slowly solution
What if the Linux partition read-only causes the database to stop writing data?
How to shield the storm ui kill function in Linux
How Linux uses commands in sysstat
Linux using the mpstat command method
What should I do if the Linux crontab has a BAD FILE MODE error?
How to choose qcow2 and raw image format for Linux system
How to limit the access rights of Linux users
Parameters and function descriptions of the Linux system Xconfigurator command
Win7 system in the Baidu cloud disk download file is very slow how to improve the download speed?
Experts easily set the cheats of win8 account password
Win8/Win8.1 common error code solution summary
How does Win7 set the language bar? How to set the language bar
Can I use a computer when thunder?
How to prohibit computer files from being copied to a USB flash drive under Win7 system?
Aura system using graphic tutorial