Locale Page...  Global  |  Germany  |  UK  |  USA
Your privat CyberGadget - Die besten Resourcen für Web-Designer, Web-Master und Web-Developer!
Quick Search
Werbung
Partner & Freunde
Developersdex
Tutorial Guide
PHP: Handbuch
PHP Handbuch der PHP-Dokumentationsgruppe php.net

utf8_encode

(PHP 3>= 3.0.6, PHP 4 , PHP 5)

utf8_encode -- Encodes an ISO-8859-1 string to UTF-8

Description

string utf8_encode ( string data)

This function encodes the string data to UTF-8, and returns the encoded version. UTF-8 is a standard mechanism used by Unicode for encoding wide character values into a byte stream. UTF-8 is transparent to plain ASCII characters, is self-synchronized (meaning it is possible for a program to figure out where in the bytestream characters start) and can be used with normal string comparison functions for sorting and such. PHP encodes UTF-8 characters in up to four bytes, like this:

Tabelle 1. UTF-8 encoding

bytesbitsrepresentation
170bbbbbbb
211110bbbbb 10bbbbbb
3161110bbbb 10bbbbbb 10bbbbbb
42111110bbb 10bbbbbb 10bbbbbb 10bbbbbb
Each b represents a bit that can be used to store character data.


© 2001 - 2009 CYGAD.NET | All rights reserved. | Terms of Service | About | Time data: GMT +1! | Portal Release X2.6.1 Beta | RunTime: 0.4489
Optimized for Internet Explorer Internet Explorer 6.0+, Firefox Firefox 1.5+!