无法显示希腊字符 .mdb 文件(PHP 和 ODBC)
我在显示 MS Access 2007 表中希腊语列中的文本时遇到问题。我正在使用 PHP 和 $dbc = @odbc_pconnect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$mdbFilename", $user, $pass);
从本地读取.mdb 文件。我可以成功读取数据库中拉丁字符的其余数据。当我回显结果时,希腊字符显示为 �
。 html 字符集已正确设置为 utf-8。我尝试过使用 utf8_encode 但没有成功。我在网上搜索了一段时间没有但无法弄清楚。
任何帮助将不胜感激。
凯里斯
I am having problems displaying text from a column in an MS Access 2007 table which is in Greek. I am using PHP and $dbc = @odbc_pconnect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$mdbFilename", $user, $pass);
to read from a local .mdb file. I can successfully read the rest of the data in the DB which is in Latin characters. Greek characters get displayed as �
when I echo the results. The html charset is properly set to utf-8. I've tried using utf8_encode with no luck. I've been searching the web for some time no but could not figure it out.
Any help would be appreciated.
Kyris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
.mdb
格式是 Microsoft 的发明,不使用 Unicode,而是使用Windows-
代码页之一。检查您使用的是哪一个希腊语,然后使用 iconv 进行翻译编码之间。.mdb
format, being a Microsoft's invention does not use Unicode, but rather one ofWindows-
codepages. Check which one is that you use for Greek, and use iconv to translate between encodings.举个例子:
As an exmple: