Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Référence du fichier transcode_wrapper.php

Espaces de nommage

 IDNA
 

Fonctions

 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='')
 

Documentation des fonctions

◆ decode_utf8()

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

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

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

Références elseif, et map_iso8859_1_w1252().

◆ encode_utf8()

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

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

Paramètres
stringString to encode [
stringEncoding; Default: ISO-8859-1] [
boolSafe Mode: if set to TRUE, the original string is retunred on errors]
Renvoie
string The encoded string or false on failure
Depuis
0.0.1
Note
This file has been modified by the Joomla! Project and no longer reflects the original work of its author.

Références elseif, et map_w1252_iso8859_1().

◆ map_iso8859_1_w1252()

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

Paramètres
stringYour input in ISO-8859-1
stringThe resulting Win1252 string
Depuis
3.0.8

Références $i, et $return.

Référencé par decode_utf8().

◆ map_w1252_iso8859_1()

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

Paramètres
stringYour input in Win1252
stringThe resulting ISO-8859-1 string
Depuis
3.0.8

Références $i, et $return.

Référencé par encode_utf8().