Public Member Functions | |
__construct () | |
clean_string ($str) | |
safe_ascii_for_xml ($str) | |
convert_to_utf8 ($str, $encoding) | |
_is_ascii ($str) | |
__construct | ( | ) |
Constructor
Determines if UTF-8 support is to be enabled
_is_ascii | ( | $str) |
Is ASCII?
Tests if a string is standard 7-bit ASCII or not
public
string |
clean_string | ( | $str) |
Clean UTF-8 strings
Ensures strings are UTF-8
public
string |
convert_to_utf8 | ( | $str, | |
$encoding | |||
) |
Convert to UTF-8
Attempts to convert a string to UTF-8
public
string | |
string | - input encoding |
safe_ascii_for_xml | ( | $str) |
Remove ASCII control characters
Removes all ASCII control characters except horizontal tabs, line feeds, and carriage returns, as all others can cause problems in XML
public
string |