Overview

Packages

  • Jyxo_Beholder
  • Jyxo_Charset
  • Jyxo_Color
  • Jyxo_Css
  • Jyxo_ErrorHandling
  • Jyxo_FirePhp
  • Jyxo_Gettext
    • Parser
  • Jyxo_Html
  • Jyxo_Input
    • Chain
    • Filter
    • Validator
  • Jyxo_Mail
    • Email
    • Parser
    • Sender
  • Jyxo_Rpc
    • Json
    • Xml
  • Jyxo_Shell
  • Jyxo_SpamFilter
  • Jyxo_Spl
  • Jyxo_String
  • Jyxo_Svn
  • Jyxo_Time
  • Jyxo_Timer
  • Jyxo_Webdav
  • Jyxo_XmlReader
  • PHP

Classes

  • Jyxo_Charset
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class Jyxo_Charset

Base class for common charset operations.

Category: Jyxo
Package: Jyxo_Charset
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Jan Tichý
Author: Jaroslav Hanslík
Author: Štěpán Svoboda
Located at Charset.php
Methods summary
public static string
# detect( string $string )

Detects charset of a given string.

Detects charset of a given string.

Parameters

$string
string
String to detect

Returns

string
public static string
# convert2utf( string $string, string $charset = '' )

Converts a string from various charsets to UTF-8.

Converts a string from various charsets to UTF-8.

The charset is automatically detected if not given.

Parameters

$string
string
String to convert
$charset
string
Actual charset

Returns

string
public static string
# utf2ident( string $string )

Converts a string from UTF-8 to an identifier form.

Converts a string from UTF-8 to an identifier form.

Parameters

$string
string
String to convert

Returns

string
public static string
# utf2ascii( string $string )

Converts a string from UTF-8 to ASCII.

Converts a string from UTF-8 to ASCII.

Parameters

$string
string
String to convert

Returns

string
public static string
# russian2ascii( string $string )

Phonetical transcription of a Cyrillic string into ASCII.

Phonetical transcription of a Cyrillic string into ASCII.

Parameters

$string
string
String to convert

Returns

string
public static string
# win2ascii( string $string )

Converts a string from CP-1250 to ASCII.

Converts a string from CP-1250 to ASCII.

Parameters

$string
string
String to convert

Returns

string
public static string
# iso2ascii( string $string )

Converts a string from ISO-8859-2 to ASCII.

Converts a string from ISO-8859-2 to ASCII.

Parameters

$string
string
String to convert

Returns

string
public static string
# fixUtf( string $string )

Transliterates or removes unknown UTF-8 characters from a string.

Transliterates or removes unknown UTF-8 characters from a string.

Parameters

$string
string
String to fix

Returns

string
Jyxo PHP Library API documentation generated by ApiGen 2.3.0