How to insert an hebrew value into a mysql db in php

后端 未结 8 1189
温柔的废话
温柔的废话 2020-12-10 15:30

I\'m trying to insert an hebrew value into my mysql db, instead of hebrew the values looks like that.

שדגשדכעשד

8条回答
  •  醉话见心
    2020-12-10 16:01

    you should make sure that:

    1. you set utf-8 in php
    2. you use utf-8 in the connection
    3. your table is defined as utf-8_general_ci
    4. the specific field is defined as utf-8_general_ci

    Then you should be able to view Hebrew, or any other language, correctly in phpadmin

提交回复
热议问题