Published in Brighton, UK

Clagnut

Internationalisation test

Stuart has posted a reminder of this useful trick for confirm that your application properly handles international characters:

Iñtërnâtiônàlizætiøn

In the comments, Dominic points a further check for Unicode support: Ādam (the previous example only uses Latin-1). It seems my handmade CMS fails these tests miserably.

7 November 2006

§ PHP/MySQL

6 comments

Next

Previous

Related posts

Keywords

Machine tags

Comments

  1. 1

    Testing the comments system: Iñtërnâtiônàlizætiøn Ādam

    Rich
    Rich’s Gravatar
    7 Nov 2006
    08:34 GMT
  2. 2

    How about a real test?

    šđčćž

    obviously it doesn’t work…

    Jernej
    Jernej’s Gravatar
    8 Nov 2006
    16:48 GMT
  3. 3

    interestingly, i have been fiddling with my own site, and one of the issues i tweaked was internationalisation. serendipity…

    http://www.splintered.co.uk/news/74/

    if it’s any help, i found that using htmlentities() (which i relied on heavily before moving to proper utf-8) can mess things up…i simply moved to htmlspecialchars() instead.

    patrick h. lauke
    patrick h. lauke’s Gravatar
    12 Nov 2006
    02:46 GMT
  4. 4

    Patrick – serendipity indeed. It’s been htmlentities() that has been causing all my problems too.

    Everything has been going into the datase OK, it’s just displaying it that has caused the problems (more with comemnts that with my own posts. I’ll try htmlspecialchars() instead.

    Rich
    Rich’s Gravatar
    12 Nov 2006
    13:14 GMT
  5. 5

    seems to work fine now.

    Iñtërnâtiônàlizætiøn, Ādam, Uttryck din åsikt om framtiden för HTML, šđčćž

    patrick h. lauke
    patrick h. lauke’s Gravatar
    12 Nov 2006
    22:35 GMT
  6. 6

    Getting there… Here’s a cut and paste test:

    Iñtërnâtiônàlizætiøn, Ādam, Uttryck din åsikt om framtiden för HTML, šđčćž

    And with a proper quite mark:

    if it’s any help

    Rich
    Rich’s Gravatar
    13 Nov 2006
    08:36 GMT

Add your comment

Comments are now closed on this post. If you have more to say please contact me directly.

Outside interest

Top Referrers