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

后端 未结 8 1159
温柔的废话
温柔的废话 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:06

    what finally helped me is to add the charset to the connection:

    {"mysql:host=$host;dbname=$db;charset=utf8"}
    

提交回复
热议问题