i have created a board so user can post comment but, some error occured:
the special character ' is not recognize
it come like this:

correct word:
Hey I'm your life

turned to:
Hey I�m your life

This is because, i used:

<?php echo wordwrap(nl2br(htmlentities($message)), 200, "<br>\n", TRUE); ?>

htmlentities() allowed user to write html character

if i delete it, the ' character will printed out but, the html character will not showed up.

please help me. :(

Set the charset meta tag to match server encoding. You need to set this value both in sending and in receiving page. Bye :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.