Posts Tagged ‘character encoding’

HTML entity encoding everything in PHP

Wednesday, January 30th, 2008

The standard htmlentities() function will encode special characters so that they display OK in the browser. However, sometimes you might want to encode different languages to entities too. I just found a script that will do that in the form of an html encode application. The source is browsable but a little bit impenetrable so I fixed it up a little:... Read More