This Codeigniter function does not account for all accented characters.

This is a list of characters with an accent. found here .

ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ

I used the Codeigniter convert_accented_characters function to convert accented characters to ASCII characters. However, for two characters ( Þ and þ ) this does not work, see Output:

AAAeAAAAECEEEEIIIIDjNOOOOOeOUUUUeYÞssaaaaaeaaeceeeeiiiidjnoooooeouuuueyþy

How can I expand this array to account for these two characters.

Will this change be adequate?

'//Þ/þ' => 'p', on line 88? I am not familiar with these characters and in what language they are!

+5
source share
1 answer

You must add this code.

 '/Þ|þ/' => 'th', '//' => 'p', 

for the array in the file application/config/foreign_chars.php

This array is used to determine transliteration.

Þ or þ come from Icelandic alphabets. Replaced by th digraph in English

refers to the Cyrillic alphabet and is translated into English as p

+5
source

All Articles