MySql spanish character data

前端 未结 3 1196
一整个雨季
一整个雨季 2021-01-14 05:19

i hav a database that contains spanish characters. to populate the database i am getting the values from client page which has character encoding=UTF-8. when i insert the va

3条回答
  •  长情又很酷
    2021-01-14 06:09

    Check two things first:

    • Are you inserting the data as UTF-8? If the data is coming from a web page, make sure the page's encoding is set to UTF-8 (encoding meta tag is set in the page header).
    • Are you sure the data is not saved as Unicode? This is the reverse situation: if phpMyAdmin uses something else other than UTF-8, you'd see the garbled characters when it displays the contents.

提交回复
热议问题