scarhand Posted February 5, 2011 Share Posted February 5, 2011 Heres my code: $string = 'It'; html_entity_decode($string); echo $string; It should be echoing "It", but its just echoing the ASCII codes. Am I using the wrong function? I also tried htmlspecialchars_decode and it changes nothing. Link to comment https://forums.phpfreaks.com/topic/226812-html_entity_decode-not-decoding-ascii/ Share on other sites More sharing options...
sunfighter Posted February 5, 2011 Share Posted February 5, 2011 Works for me. Link to comment https://forums.phpfreaks.com/topic/226812-html_entity_decode-not-decoding-ascii/#findComment-1170369 Share on other sites More sharing options...
sunfighter Posted February 5, 2011 Share Posted February 5, 2011 Are you saving this as a php file???? not a html Link to comment https://forums.phpfreaks.com/topic/226812-html_entity_decode-not-decoding-ascii/#findComment-1170373 Share on other sites More sharing options...
scarhand Posted February 5, 2011 Author Share Posted February 5, 2011 I figured it out. It was missing a ; after each ascii code. Link to comment https://forums.phpfreaks.com/topic/226812-html_entity_decode-not-decoding-ascii/#findComment-1170406 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.