PHP MySQL Greek letters showing like ???? marks

后端 未结 6 608
广开言路
广开言路 2020-11-29 08:37

I have a table with some text and text is greek letters, when i use sql tool and select the data from this table is showing correctly

6条回答
  •  悲&欢浪女
    2020-11-29 09:14

    I faced the same problem while implementing Greek Characters. The solutions like mysql_query("SET NAMES 'utf8'"); mysql_query("SET CHARACTER SET 'utf8'"); did not work for me. After Googling, I found that, the character set for the database collation should be made greek_general_ci along with the field where data would be stored like categoryname etc. This solved my problem.

提交回复
热议问题