private static function replaceForNativeNormalize( $string ) {
		$string = preg_replace(
			'/[\x00-\x08\x0b\x0c\x0e-\x1f]/',
			Constants::UTF8_REPLACEMENT,
			$string );
		$string = str_replace( Constants::UTF8_FFFE, Constants::UTF8_REPLACEMENT, $string );
		$string = str_replace( Constants::UTF8_FFFF, Constants::UTF8_REPLACEMENT, $string );

		return $string;
	}
private static function replaceForNativeNormalize( $string ) {
		$string = preg_replace(
			'/[\x00-\x08\x0b\x0c\x0e-\x1f]/',
			Constants::UTF8_REPLACEMENT,
			$string );
		$string = str_replace( Constants::UTF8_FFFE, Constants::UTF8_REPLACEMENT, $string );
		$string = str_replace( Constants::UTF8_FFFF, Constants::UTF8_REPLACEMENT, $string );

		return $string;
	}
private static function replaceForNativeNormalize ( $ string ) { $ string = preg_replace ( '/[\x00-\x08\x0b\x0c\x0e-\x1f]/' , Constants :: UTF8_REPLACEMENT , $ string ) ; $ string = str_replace ( Constants :: UTF8_FFFE , Constants :: UTF8_REPLACEMENT , $ string ) ; $ string = str_replace ( Constants :: UTF8_FFFF , Constants :: UTF8_REPLACEMENT , $ string ) ; return $ string ; }
Function to replace some characters that we don't want
but most of the native normalize functions keep.

@param string $string The string
@return string String with the character codes replaced.
Function to replace some characters that we don t want but most of the native normalize functions keep .