문제

i am using html_entity_decode($str) for decode html tags, but it cannot be able to decode the text. it show ? for " " in output... i have used htmlentities also to encode it and at display time i decode it also. but the problem is not solve.you can watch the output at 'http://www.aspits.com/aspits/testimonials.php'. i am suffering from this please help me. i have tried so much things for it but i am not be able to get the solution for this. in database it appear correct means in database the entry is "test" but when i show it on front end then it display ?test? like this as output...

올바른 솔루션이 없습니다

다른 팁

Do your character sets in database and HTML match?

If not, make them. Assuming you are using UTF-8.

<meta http-equiv="Content-Type" content=text/html; charset=utf-8" />

I'll also assume MySQL (please tag what database you are using).

SET NAMES 'utf-8'

Update

Just looked at your site. You are informing the browser you are using UTF-8.

Please check your database.

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