14

PHP and Unicode

Scott Reynen shows how to use integer arrays in PHP to handle Unicode manually.

There are also functions available called the Multi-Byte String Functions which handle many encodings. Please ignore the part in the documentation that says that this is “developed to handle Japanese characters.” It actually appears to handle lots of encodings including the Unicode ones. However it is turned off by default so you must recompile PHP to enable it.

About the author.

In 2000 I co-founded Fog Creek Software, where we created lots of cool things like the FogBugz bug tracker, Trello, and Glitch. I also worked with Jeff Atwood to create Stack Overflow and served as CEO of Stack Overflow from 2010-2019. Today I serve as the chairman of the board for Stack Overflow, Glitch, and HASH.