contenido\includes\functions.encoding.php
Project:
Contenido Content Management System
Description: Some little function to retrieving current encoding.
Requirements:
- Author
- Holger Librenz
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- Contenido Backend includes
- Since
- file available since contenido release <= 4.6 {@internal created unknown modified 2008-06-26, Frederic Schneider, add security fix modified 2008-11-12, Andreas Lindner, add function conHtmlentities_iso88592 $Id: functions.encoding.php 873 2008-11-12 09:18:50Z andreas.lindner $: }}
- Version
- 1.3.1
Functions

conHtmlentities_iso88592(string $sInput = '') : string
Special version of htmlentites for iso-8859-2 Returns transformed string
Parameters
Returns
Name | Type | Description |
---|---|---|
$sInput | string |
Type | Description |
---|---|
string |

getEncodingByLanguage(\DB_Contenido $oDb, int $iLang, array $cfg) : string
Returns encoding for language with ID $iLang (global $lang in contenido style).
The parameter $oDb has to be an instance of DB_Contenido (global $db in con) and $cfg is the equivalent to global $cfg array in contenido. If no encoding is found or any parameter is not valid, the function will return false, otherwise the encoding as string like it is stored in database. modified 18.03.2008 - Removed special mySQl behaviour (using db object instead) Timo Trautmann
Name | Type | Description |
---|---|---|
$oDb | \DB_Contenido | |
$iLang | int | |
$cfg | array |
Type | Description |
---|---|
string |