为什么来自Access的中文字符在UTF8网页中显示不正确 [英] Why Chinese character from Access display improperly in UTF8 webpage

查看:130
本文介绍了为什么来自Access的中文字符在UTF8网页中显示不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我遇到了一个无法正确显示MS Access中文字符的问题。

I met a problem that can not properly show Chinese characters from MS Access.

这是我的环境



  • using php and ODBC 

  • 中文字符通过MS Access UI输入。

  • php文件保存为UTF-8

  • html标题和php.ini是关于Charset的空白

  • 浏览器编码设置为UTF-8

来自Access的叮咬是扭曲的。

The stings came from Access are distorted.

我有2个问题:


    < li style ="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:ini TiAl基;轮廓色:初始;列表样式类型:十进制;文字修饰:无;填充:0像素;保证金:0像素; border:initial none initial">
    charset用于在Access中存储中文字符?

  1. 有没有我可以做的配置让Access以UTF-8存储数据(就像许多其他SQL一样)?

感谢任何回复。 

Any replies are appreciated. 

推荐答案

我检查了odbc_result()的原始数据,然后确认返回的是GB2312(或GBK)。这对我的情况非常不利,我需要它在UTF8。所以任何人都可以告诉我如何配置Access以执行此操作。谢谢
I checked the raw data from the odbc_result(), Then confirmed the return is in GB2312(or GBK). Which is very bad for my situation, I need it in UTF8. So anyone can tell me how to configure the Access to do that. thanks


这篇关于为什么来自Access的中文字符在UTF8网页中显示不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆