PHP5 is totally ok with Unicode utf-8 encoding. And yes you should be using it for everything, period. ASCII is bullshit. To make things even better, PHP5 functions work fine with Unicode all the time, unless stated otherwise. So the question you have now is: “How do I enable utf-8 in my php5 code for dynamic sites?”
Simple, just make sure your text file is saved encoded as utf-8!
Also make sure the XHTML for your dynamically created and static web pages include utf-8 as the character set in the <head> section of the document.
Your choice of with or without BOM (Bite Order Mark, which indicates Big-Endian or Little-Endian) doesn’t matter. You can include it, or not. Unicode utf-8 basically ignores the BOM.
0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment