protected function makeUTF8 ( $s )
	{
		if (function_exists('iconv'))
		{
			do
			{
				$ok   = true;
				$text = @iconv('UTF-8', 'UTF-8//TRANSLIT', $s);
				if (strlen($text) != strlen($s))
				{
					// Remove the offending character...
					$s  = $text . '.' . substr($s, strlen($text) + 1);
					$ok = false;
				}
			}
			while (!$ok);
		}
		return $s;
	}
protected function makeUTF8 ( $s )
	{
		if (function_exists('iconv'))
		{
			do
			{
				$ok   = true;
				$text = @iconv('UTF-8', 'UTF-8//TRANSLIT', $s);
				if (strlen($text) != strlen($s))
				{
					// Remove the offending character...
					$s  = $text . '.' . substr($s, strlen($text) + 1);
					$ok = false;
				}
			}
			while (!$ok);
		}
		return $s;
	}
protected function makeUTF8 ( $ s ) { if ( function_exists ( 'iconv' ) ) { do { $ ok = true ; $ text = @ iconv ( 'UTF-8' , 'UTF-8//TRANSLIT' , $ s ) ; if ( strlen ( $ text ) != strlen ( $ s ) ) { // Remove the offending character... $ s = $ text . '.' . substr ( $ s , strlen ( $ text ) + 1 ) ; $ ok = false ; } } while ( ! $ ok ) ; } return $ s ; }
Make a string utf8, replacing all non-utf8 chars with a '.'

@param string
@return string
Make a string utf8 replacing all non - utf8 chars with a .