/ Published in: PHP

I can't say I can rely on mb_detect_encoding(). Had some freaky false positives a while back. The following code will detect when you need to enconde or decode it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ // this is utf-8 } else { // definitely not utf-8 }
Comments
