SQL Server - PHP (ODBC) 无法识别的特殊字符
我正在尝试将一些信息从 SQL Server 显示到我的 PHP 站点。我正在使用 ODBC 连接。
我的问题是:无法识别特殊字符,并且在我的网站中显示“问号(?)”。 (这适用于我的其他 ASP 站点)
我在这里缺少什么?请帮我。
提前致谢。
I am trying to display some information from SQL Server to my PHP site. I am using ODBC connection for that one.
My Issue is : Special characters are not recognised and it is displaying "question mark (?)" in my site. (This works in my other ASP site)
What I am missing here ? Please help me.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用一些特殊的 MSSQL 查询转换器,然后在 PHP 端使用 ICONV,如下所示:
在 PHP 中,假设文本位于 CodePage 1255 中:
希望有帮助。
I use some special MSSQL query converter and then ICONV in the PHP side like this:
And in the PHP, say the text is in CodePage 1255:
hope that's helps.
ODBC 连接的字符编码是什么?
它应该是一些在 PHP 端进行适当处理的 UTF...
What's your character encoding for the ODBC connection?
It should be some UTF with proper handling on PHP side...