Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
Transcoder Class Reference

Public Member Functions

 trans ($string)
 
 Transcoder ($fromEncoding, $toEncoding, $translit=false)
 

Detailed Description

Multi-class transcoder; uses mbstring and iconv if available, otherwise falls back to built-in classes.

Definition at line 17 of file Transcoder.inc.php.

Member Function Documentation

Transcoder::trans (   $string)

Transcode a string

Parameters
$stringstring String to transcode
Returns
string Result of transcoding

Definition at line 44 of file Transcoder.inc.php.

References String\html2utf().

Transcoder::Transcoder (   $fromEncoding,
  $toEncoding,
  $translit = false 
)

Constructor

Parameters
$fromEncodingstring Name of source encoding
$toEncodingstring Name of target encoding
$translitboolean Whether or not to transliterate while transcoding

Definition at line 33 of file Transcoder.inc.php.


The documentation for this class was generated from the following file: