In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to deal with Chinese garbled in JSP. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
JSP
1 first eliminate the scripting problem
It goes like this: modify the configuration file, link the workstation's remote database instead of the server's local database, and debug ok
2 the second exclusion is the problem of database coding.
It's a bit tangled here, because there are often coding problems in databases that use mysql. After the database is imported, it is displayed in Chinese in the library, but the data submitted by the background of the website is garbled. Since the Chinese in the database is normal, it should be excluded.
3 the problem should occur in the data transmission link.
Successful solution: modify the database connection pool and specify the connection character set encoding
The original connection code:
XML/HTML code
Com.mysql.jdbc.Driver jdbc:mysql://127.0.0.1:3306/test root root
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.