My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions
CI_Utf8 Class Reference

Public Member Functions

 __construct ()
 
 clean_string ($str)
 
 safe_ascii_for_xml ($str)
 
 convert_to_utf8 ($str, $encoding)
 
 _is_ascii ($str)
 

Constructor & Destructor Documentation

__construct ( )

Constructor

Determines if UTF-8 support is to be enabled

Member Function Documentation

_is_ascii (   $str)

Is ASCII?

Tests if a string is standard 7-bit ASCII or not

public

Parameters
string
Returns
bool
clean_string (   $str)

Clean UTF-8 strings

Ensures strings are UTF-8

public

Parameters
string
Returns
string
convert_to_utf8 (   $str,
  $encoding 
)

Convert to UTF-8

Attempts to convert a string to UTF-8

public

Parameters
string
string- input encoding
Returns
string
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

Parameters
string
Returns
string

The documentation for this class was generated from the following file: