Overview

Namespaces

  • Jyxo
    • Beholder
      • TestCase
    • Gettext
      • Parser
    • Input
      • Chain
      • Filter
      • Validator
    • Mail
      • Email
        • Attachment
      • Parser
      • Sender
    • Rpc
      • Json
      • Xml
    • Shell
    • Spl
    • Svn
    • Time
    • Webdav
  • PHP

Classes

  • Charset
  • Color
  • Css
  • ErrorHandler
  • ErrorMail
  • FirePhp
  • Html
  • HtmlTag
  • SpamFilter
  • String
  • Timer
  • XmlReader

Exceptions

  • Exception
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class Charset

Base class for common charset operations.

Namespace: Jyxo
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