PHP MySQL Greek letters showing like ???? marks

后端 未结 6 595
广开言路
广开言路 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条回答
  •  萌比男神i
    2020-11-29 09:10

    try the following:

    after you connect to the mysql, do this query to make sure that you are using UTF8:

    mysql_query("SET NAMES 'utf8'");
    mysql_query("SET CHARACTER SET 'utf8'");
    

    make sure that in HTML (head) you are using the right encoding, try:

    
    

    if this does not help, try different encoding, like ISO-8859-1

提交回复
热议问题