Gday all
I have a problem when trying to insert some Chinese characters into my MySQL database from PHP using mysqlnd.
I have a form that takes some details, like Internal name, External name, Snapshot name, etc.
I entered "语言 测试" (language testing) in all three fields on the form.
I submit my information using an internal connection, for example:
UPDATE table1 INNER JOIN table2(table1.name = "value1", table2.ext_name = "value2", table2.ext_name = "value3")
If both tables and fields are set to utf8_general_ci (I also tried utf8_bin)
The insert works correctly, however, I see two values inserted into the database.
In the first table I see "è¯è¨ € æμ <è¯ •", and in table 2 I see "语言 测试".
What could cause my insertion of exactly the same data from the same php form to appear differently in two separate MySQL database tables?
source
share