File/unicode-defs.php

Description
Functions
is_utf8 (line 105)
void is_utf8 (mixed $s)
utf8encode (line 36)

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.

  • return: The utf-8 encoded string
string utf8encode (string $source)
  • string $source: String of unicode entities
utf8ord (line 136)
void utf8ord (mixed $c)
utf8RawUrlDecode (line 177)

RFC1738 compliant replacement to PHP's rawurldecode - which actually works with unicode (using utf-8 encoding).

  • return: Unicode-safe rawurldecoded string
string utf8RawUrlDecode (string $source)
  • string $source: The original string
utf8RawUrlEncode (line 219)

Replacement for PHP's rawurlencode. This version skips any existing sequences of '%xx', which represent already-encoded chars. Also uses the multi=byte string functions to preseve unicode chars integrity.

  • return: The URL-encoded string
string utf8RawUrlEncode (string $str)
  • string $str: The string to URL encode
utf8_ensure (line 166)

Ensure a string is encoded as UTF-8..

void utf8_ensure (mixed $s)

Documentation generated by phpDocumentor 1.3.0RC3