Allow normalized search (without diacritics) it should also fix the case problem with non latin languages (cyrillic).
The last part is not tested. disclaimer : Slow ! re #49, #48
This commit is contained in:
parent
23fcc4d641
commit
78d42b48e2
5 changed files with 148 additions and 7 deletions
|
@ -125,4 +125,8 @@ class BaseTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
$this->assertTrue (Base::checkDatabaseAvailability ());
|
||||
}
|
||||
|
||||
public function testNormalizeUtf8String () {
|
||||
$this->assertEquals ("AAAAAEACEEEEIIIIOEOOOOOEUUUUEYaaaaaeaceeeeiiiioedoooooeuuuueyyuny", normalizeUtf8String ("ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏŒÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïœðòóôõöùúûüýÿñ"));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue