Browsing articles tagged with "normalization Archives - PHP Dev Tips"
Aug
25
2011

Using PHP to Replace Special Characters with their Equivalents

PHP Character Replacement

After having just completed an extensive text file parsing script, I discovered something very very very annoying.  A small army of Microsoft Word inspired characters had invaded the imported plain text files (courtesy a number of citation management softwares and websites), causing text to have all sorts of ‘fun’ symbols sprucing things up. For example “Tâ��ms” => “Teams”, but with that extra something added in for visual highlight (or something). So what was a programmer […]