News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

The Northclick Blog:
A comma is a comma is a comma...or is it?
September 20, 2007 @ 09:32:00

Internationalizing a website can bring all sorts of challenges, as Markus Wolff found out when working on a recent project:

When you're building international websites, there's always something new to learn. Especially if one of the languages your website is available in uses a character set different from anything you're used to. For jimdo.com, the greatest challenge as of yet is the chinese version.

His focus isn't so much on the content of the page but on one small character that caused him headaches - the comma. Unfortunately, it seems that Unicode has its own commas that don't quite adhere to the "normal" rules to make them easy to work with (and, in his case, split with a regular expression). The fix to the situation was simple, though - adding a "u" modifier after the expression made it Unicode-aware and split the information correctly.

0 comments voice your opinion now!
comma unicode support regularexpression preg chinese comma unicode support regularexpression preg chinese


blog comments powered by Disqus

Similar Posts

Nick Halstead's Blog: 10 Reasons why PHP is still very much alive

Reddit.com: Year Old Bug Request for $_PUT Interested in /r/php's Opinion

Ed Finkler's Blog: What Matt Mullenweg doesn't know about PHP5, and how it hurts him and his users

Andrei Zmievski's Blog: My name is not really Andrei (Transliteration)

The Northclick Blog: A comma is a comma is a comma...or is it?


Community Events





Don't see your event here?
Let us know!


symfony laravel bugfix introduction library tips interview deployment conference list release zendserver series language framework api community podcast developer voicesoftheelephpant

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework