Skip to content

Instantly share code, notes, and snippets.

@zeroasterisk
zeroasterisk / cleanup_uft8_class.php
Created April 30, 2012 15:15
A PHP class to cleanup strings to be UTF8
<?php
/* Standardized data cleanup helper class */
class Cleanup {
/**
* Make a string into UTF8 compliant... cleans funcky input characters
* @param mixed $str
* @return mixed $str
*/
static function makeUTF8($str) {
if (is_array($str)) {