Unicode in PHP 5 Web Applications
Reading from Around the Web
My Writings
Tools and Software Libraries
My Notes
- Use the mbstrings library equivalents of built‐in PHP string functions
- Use Swift Mailer as a replacement for the built‐in
mail()
function
- Configure your webserver to send the UTF-8 charset HTTP header
- Use PHP
header()
function to send the UTF-8 charset HTTP header
- Add the following to the
<head>
of your HTML documents: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- Configure your database appropriately; this is covered well for MySQL in the PHP UTF-8 cheatsheet from loft.
- Pray that it all works
- Code all forms using
<form accept-charset="UTF-8">
.