XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Namespaces | Functions
transcode_wrapper.php File Reference

Go to the source code of this file.

Namespaces

 IDNA
 

Functions

 encode_utf8 ($string= '', $encoding= 'iso-8859-1', $safe_mode=false)
 
 decode_utf8 ($string= '', $encoding= 'iso-8859-1', $safe_mode=false)
 
 map_w1252_iso8859_1 ($string= '')
 
 map_iso8859_1_w1252 ($string= '')
 

Function Documentation

decode_utf8 (   $string = '',
  $encoding = 'iso-8859-1',
  $safe_mode = false 
)

Convert a string from UTF-8 to any of various encodings

Parameters
stringString to decode [
stringEncoding; Default: ISO-8859-1] [
boolSafe Mode: if set to TRUE, the original string is retunred on errors]
Returns
string The decoded string or false on failure
Since
0.0.1

Definition at line 55 of file transcode_wrapper.php.

encode_utf8 (   $string = '',
  $encoding = 'iso-8859-1',
  $safe_mode = false 
)

Convert a string from any of various encodings to UTF-8

Parameters
stringString to encode [
stringEncoding; Default: ISO-8859-1] [
boolSafe Mode: if set to TRUE, the original string is retunred on errors]
Returns
string The encoded string or false on failure
Since
0.0.1

Definition at line 19 of file transcode_wrapper.php.

map_iso8859_1_w1252 (   $string = '')

Special treatment for our guys in Redmond Windows-1252 is basically ISO-8859-1 – with some exceptions, which get accounted for here

Parameters
stringYour input in ISO-8859-1
stringThe resulting Win1252 string
Since
3.0.8

Definition at line 117 of file transcode_wrapper.php.

map_w1252_iso8859_1 (   $string = '')

Special treatment for our guys in Redmond Windows-1252 is basically ISO-8859-1 – with some exceptions, which get accounted for here

Parameters
stringYour input in Win1252
stringThe resulting ISO-8859-1 string
Since
3.0.8

Definition at line 90 of file transcode_wrapper.php.