无法显示希腊字符.mdb文件(PHP& ODBC) [英] Cannot display Greek characters .mdb file (PHP & ODBC)
问题描述
我在显示希腊语MS Access 2007表格中某列的文本时遇到问题。我使用PHP和 $ dbc = @odbc_pconnect(Driver = {Microsoft Access Driver(* .mdb)}; Dbq = $ mdbFilename,$ user,$ pass);
从本地.mdb文件读取。我可以成功地读取DB中的其他数据,这是拉丁字符。当我回显结果时,希腊字符显示为
。 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.
任何帮助都会感激。
Kyris
推荐答案
.mdb
发明不使用Unicode,而是 Windows -
代码页之一。检查您希望使用哪一种语言,然后使用 iconv 翻译
.mdb
format, being a Microsoft's invention does not use Unicode, but rather one of Windows-
codepages. Check which one is that you use for Greek, and use iconv to translate between encodings.
这篇关于无法显示希腊字符.mdb文件(PHP& ODBC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!