if the page that the input form is on sets utf-8 as the content type, then most (?) browsers will send utf-8. you can use a meta tag like:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
utf-8 characters are 8 bit clean, so they can be stored and retrieved in mysql 3.x ok, but proper utf-8 sorting etc. doesn't work. for many purposes though it seems to be ok.
single characters in utf-8 encoding do look like multiple characters as far as 8 bit text handling programs are concerned (so yes, 15 characters in iso-8859-1 or ascii isn't the same length as 15 characters in utf-8).
fonts that support utf-8 are required for properly displaying utf-8, and you have to specify utf-8 on the display page (either via a content-type header or with content-type meta tag as above) to get the browser to use the right fonts.
- rob
Always use Content-type header, because the meta is overrided by the ISO-8859-1 default in php.ini. Also, use *DOS* as the encoding in MySQL to work w/ UTF-8 characters.
Also, remove the default encoding in Apache server (if you're using one) because it also overrides meta tags in html files.
After the proper header is sent, it is the duty of the client (browser) to find relevant fonts. However, make sure you use the lang and xml:lang attribute in your html/xhtml to select your locale. (different locale use a different set of fonts)
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php