/functions/encode/utf_8.php

Description

utf-8 encoding functions

takes a string of unicode entities and converts it to a utf-8 encoded string each unicode entitiy has the form &#nnn(nn); n={0..9} and can be displayed by utf-8 supporting browsers. Ascii will not be modified.

Original code is taken from www.php.net manual comments Original author: ronen at greyzone dot com

Functions
charset_encode_utf_8 (line 25)

Converts string to utf-8

  • return: utf-8 encoded text
string charset_encode_utf_8 (string $string)
  • string $string: text with numeric unicode entities
unicodetoutf8 (line 46)

Return utf8 symbol when unicode character number is provided

This function is used internally by charset_encode_utf_8 function. It might be unavailable to other SquirrelMail functions. Don't use it or make sure, that functions/encode/utf_8.php is included.

  • return: utf8 character
string unicodetoutf8 (int $var)
  • int $var: decimal unicode value

Documentation generated on Sat, 07 Oct 2006 16:34:00 +0300 by phpDocumentor 1.3.0RC6