문제

I am fetching data from mysql server but the data contains some special character which when i try to print through my php code show a question mark instead. I know this has something to do with character encoding, and i have set charset to utf-8 in my html code but still I am not getting the special characters.

도움이 되었습니까?

해결책

Add mysql_query("SET NAMES utf8") to the start of the php code after the db connection.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top