File/nasmail/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

  • version: $Id: utf_8.php 657 2007-08-22 13:01:48Z tokul $
  • copyright: (c) 2004-2006 The SquirrelMail Project Team
  • copyright: (c) 2006-2007 The NaSMail Project
  • license: GNU Public License
Functions
charset_encode_utf_8 (line 26)

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 47)

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 Sun, 22 Nov 2009 17:36:53 +0200 by phpDocumentor 1.4.3