0

Possible Duplicate:
PHP htmlentities() not working as expected

I'm confused as to why it is converted into strange characters as opposed to just ´ Can anyone point me in the right direction?

Community
  • 1
  • 1
blacktie24
  • 4,985
  • 6
  • 41
  • 52

1 Answers1

2

Use the second flags argument - http://php.net/manual/en/function.htmlentities.php, e.g.

htmlentities( $string, ENT_QUOTES | ENT_SUBSTITUTE, "UTF-8" );
scibuff
  • 13,377
  • 2
  • 27
  • 30