Search the Community
Showing results for tags 'charset'.
-
Mentioned in the book in especially Chapter 14: Making Universal Sites and Chapter 15: Message board example, are recommendations for processing unicode safe data. We learn that utf-8 supports a wide list of languages. There was so much information to digest, I could not recall if every action is required when building a universal/multilingual site. Are all of these set by default? Particularly the database character set. My mySQL is already set as (actually copied this straight from phpMyAdmin) utf8_unicode_ci Unicode (multilingual), case-insensitive Would I then have to establish a charset and collation for the database? Are these actions needed each time, here is a list I gathered up while reading. Added to inbetween the head tags <meta http-equiv="content-type" content="text/html; charset=utf-8"> -> Page 416-417 Must be the first line before any HTML, must be a php script page header('Content-Type: text/html; charset=UTF-8'); -> Page 452 (and more information in Chapter 14) Mysql Client CREATE DATABASE forum2 CHARACTER SET utf8; -> Page 444 mysql_connection mysqli_set_charset($dbc, 'utf8'); or mysqli_query($dbc, 'SET NAMES utf8'); -> Page 450 Any one with some insight on this great appreciated with any comments. -Mark
-
Hello there everyone! In chapter 14, i found the collation easy and simple to accomplish using the Collator object in PHP 5, but i haven't yet been able to accomplish transliterstion into different languages and character sets( Script 14.4 Trans.php ). I've tried to use iconv to get script 14.4 to work, but so far, it has failed me. And looking at the manual, the Transliterator object should be able to help me do this, but the documentation is vague and unsatisfactory at best. Has anyone else tackled transliteration in script 14.4 using PHP 5?
- 2 replies
-
- iconv
- transliteration
-
(and 2 more)
Tagged with: