Home  >  Article  >  Database  >  mysql-prepareStatement executes mySql statement with Chinese garbled characters

mysql-prepareStatement executes mySql statement with Chinese garbled characters

WBOY
WBOYOriginal
2016-10-22 23:59:591235browse

Mysqljava Chinese garbled characters

url is set to ?characterEncoding=utf8. It doesn’t work anymore. I have been using the same project before and never had this problem. It just started to appear suddenly, whether it is splicing Chinese directly into the statement. Or using the method of assigning values ​​​​to ? will not work,,,, what is the situation?,,,

Reply content:

Maybe there is something wrong with the encoding of the mysql database

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn