droc60607 2016-04-04 07:30
浏览 28

问题与希伯来语

I am having issues using hebrew with mysql and PHP, i have already tried this:

the db collation has to be utf8_general_ci.

the collation of the table with hebrew has to be utf8_general_ci in my php connection script i put

header('Content-Type: text/html; charset=utf-8');

in my xhtml head tag i put after selecting the db in the connection script i put

mysql_query("SET NAMES 'utf8'");

And it is still not working. In phpmyadmin i can see the hebrew characters but when i display them in php all i see is "?????" If anyone could help me that would be great!

  • 写回答

1条回答 默认 最新

  • drci47425 2016-04-04 08:10
    关注

    In your html page

    1. Under <head> tage, add <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    At the time of mysql insert use utf8_encode & when show data try to use utf8_decode

    评论

报告相同问题?

悬赏问题

  • ¥20 用vivado写数字逻辑实验报告撰写,FPGA实验
  • ¥15 为什么shp文件会有这种小方块?
  • ¥15 ecplise在连接数据库时显示加载驱动成功但是数据库连接失败
  • ¥15 visionmaster启动失败,提示为“机器不满足授权而被禁用”
  • ¥15 IDEA中圈复杂度如何具体设置
  • ¥50 labview采集不了数据
  • ¥15 Multisim红外倒车雷达仿真中距离问题
  • ¥15 请上面代码做什么处理或什么混淆
  • ¥15 英雄联盟自定义房间置顶
  • ¥15 W5500网线插上无反应