Doctrine 1
  1. Doctrine 1
  2. DC-696

Sluggable behavior doesn't work properly with french accents in utf8

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.3
    • Component/s: Behaviors
    • Labels:
      None
    • Environment:
      Windows XP, Symfony 1.4.4, PHP 5.2.8, MySQL 5.0.x

      Description

      In UTF8, "Législation 2008" was "slugged" as "legislation-ta-2-8" which is not correct.

      It is caused as a bug in the Doctrine_Inflector::unaccent function.

      If $string seems to be UTF8, we use the $chars array to replace accents. But the last line of the $chars array (Norwegian characters replacements) is incorrect :

      'Å'=>'Aa','Æ'=>'Ae','Ø'=>'O','æ'=>'a','ø'=>'o','å','aa'

      should be replaced by

      'Å'=>'Aa','Æ'=>'Ae','Ø'=>'O','æ'=>'a','ø'=>'o','å' => 'aa'

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Nicolas Deguine
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: