Turkish dotted and undotted I's

Comparing Strings and the 4 Turkish I’s

Turkish I’s come in 4 forms: ı, I, i, İ

The Turkish I problem comes into play when comparing “standardised” strings, ones that have been converted to lower-case or upper-case.  This is commonly done for the purpose of comparing with a string literal, for example:

// PHP
$status = 'published';
if (strtoupper($status) == "PUBLISHED") {
    showPost();
} else {
    // ...
Continue reading

Share and Enjoy

  • Facebook
  • Twitter
  • Google Plus
  • LinkedIn
  • Pinterest
  • StumbleUpon
  • Email
  • Add to favorites