You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello people, I did have some troubles to work with 'url_title' where string have accentuation, after I search a little bit I got fix it.
below two functions to fix the trouble.
Hello people, I did have some troubles to work with 'url_title' where string have accentuation, after I search a little bit I got fix it.
below two functions to fix the trouble.
if ( ! function_exists('url_title'))
{
function url_title($str, $separator = 'dash', $lowercase = FALSE)
{
//$str = iconv( 'UTF-8', 'ASCII//TRANSLIT', $str );
$str =removeAccentuation($str);
if ($separator == 'dash')
{
$search = '';
$replace = '-';
}
else
{
$search = '-';
$replace = '';
}
}
if ( ! function_exists('removeAccentuation')) {
function removeAccentuation ($str, $enc = "UTF-8"){
}
thanks guys
The text was updated successfully, but these errors were encountered: