Skip to content

Instantly share code, notes, and snippets.

@jonashansen229
Forked from frejlev/fixChar.php
Created February 7, 2013 16:50
Show Gist options
  • Save jonashansen229/4732311 to your computer and use it in GitHub Desktop.
Save jonashansen229/4732311 to your computer and use it in GitHub Desktop.
public function charFix($text) {
return mb_convert_encoding($text,"HTML-ENTITIES","UTF-8");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment