Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>ok I have solved it using php french accents array. Following function I have created.</p> <pre><code> function replaceAccents($content) { //French Accent Array $arrFrenchAccent=array('À'=&gt;'&amp;Agrave;', 'à'=&gt;'&amp;agrave;', 'Á'=&gt;'&amp;Aacute;', 'á'=&gt;'&amp;aacute;', 'Â'=&gt;'&amp;Acirc;', 'â'=&gt;'&amp;acirc;', 'Ã'=&gt;'&amp;Atilde;', 'ã'=&gt;'&amp;atilde;', 'Ä'=&gt;'&amp;Auml;', 'ä'=&gt;'&amp;auml;', 'Å'=&gt;'&amp;Aring;', 'å'=&gt;'&amp;aring;', 'Æ'=&gt;'&amp;AElig;', 'æ'=&gt;'&amp;aelig;', 'Ç'=&gt;'&amp;Ccedil;', 'ç'=&gt;'&amp;ccedil;', 'Ð'=&gt;'&amp;ETH;', 'ð'=&gt;'&amp;eth;', 'È'=&gt;'&amp;Egrave;', 'è'=&gt;'&amp;egrave;', 'É'=&gt;'&amp;Eacute;', 'é'=&gt;'&amp;eacute;', 'Ê'=&gt;'&amp;Ecirc;', 'ê'=&gt;'&amp;ecirc;', 'Ë'=&gt;'&amp;Euml;', 'ë'=&gt;'&amp;euml;', 'Ì'=&gt;'&amp;Igrave;', 'ì'=&gt;'&amp;igrave;', 'Í'=&gt;'&amp;Iacute;', 'í'=&gt;'&amp;iacute;', 'Î'=&gt;'&amp;Icirc;', 'î'=&gt;'&amp;icirc;', 'Ï'=&gt;'&amp;Iuml;', 'ï'=&gt;'&amp;iuml;', 'Ñ'=&gt;'&amp;Ntilde;', 'ñ'=&gt;'&amp;ntilde;', 'Ò'=&gt;'&amp;Ograve;', 'ò'=&gt;'&amp;ograve;', 'Ó'=&gt;'&amp;Oacute;', 'ó'=&gt;'&amp;oacute;', 'Ô'=&gt;'&amp;Ocirc;', 'ô'=&gt;'&amp;ocirc;', 'Õ'=&gt;'&amp;Otilde;', 'õ'=&gt;'&amp;otilde;', 'Ö'=&gt;'&amp;Ouml;', 'ö'=&gt;'&amp;ouml;', 'Ø'=&gt;'&amp;Oslash;', 'ø'=&gt;'&amp;oslash;', 'Œ'=&gt;'&amp;OElig;', 'œ'=&gt;'&amp;oelig;', 'ß'=&gt;'&amp;szlig;', 'Þ'=&gt;'&amp;THORN;', 'þ'=&gt;'&amp;thorn;', 'Ù'=&gt;'&amp;Ugrave;', 'ù'=&gt;'&amp;ugrave;', 'Ú'=&gt;'&amp;Uacute;', 'ú'=&gt;'&amp;uacute;', 'Û'=&gt;'&amp;Ucirc;', 'û'=&gt;'&amp;ucirc;', 'Ü'=&gt;'&amp;Uuml;', 'ü'=&gt;'&amp;uuml;', 'Ý'=&gt;'&amp;Yacute;', 'ý'=&gt;'&amp;yacute;', 'Ÿ'=&gt;'&amp;Yuml;', 'ÿ'=&gt;'&amp;yuml;'); //Fliping arrays(keys and values) removing indexes using array_values. $originalFrench = array_values(array_flip($arrFrenchAccent)); //removing indexes using array_values. $arrFrenchAccent = array_values($arrFrenchAccent); //replacing e.g &amp;Agrave; with À within the content $content = utf8_encode(str_replace($arrFrenchAccent,$originalFrench,$content)); return $content; } </code></pre> <p>I hope it will help anyone who gets the same problem.</p> <p>Regards, Mustafa</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload