[Original] solves Chinese Garbled text easily (2). Chinese Garbled text
This blog focuses on solving the problem. If you are not familiar with character encoding, we recommend that you first look at [original] to easily solve Chinese Garbled text (1) --- cross-platform Garbled text.
Of course, this article is sufficient to solve the Mysql insertion error.
I. Locating Errors
Locating errors is a crucial part. I suggest you analyze the problem with patience. After all, "Not all milk is called trunsu ".
There may be many causes of the same problem, and others' solutions may not be suitable for you.
First, check the problem. The error is as follows:
It is indeed an Encoding Error. The hexadecimal error prompt (\ xF0 \ x9F \ x94 \ xA5 \ xE5 \ x8C ...) although it is clear, it is okay to see what the field value is.
Let's see what 'event _ title' is at this time, as shown below:
It turns out to be a special character'