Please, slugfy format, does not support utf-8

Please, slugfy format, does not support utf-8

The correct one is sao-paulo and not so-paulo.

correct the file by putting 2 lines of code.

in dmxConnectLib/lib/formatters/text.php line 58

replace with

function formatter_slugify($val) {
if ($val == NULL) return NULL;
$a = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜüÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ"!@#$%&*()_-+={[}]/?;:.,\\\'<>°ºª';
$b = 'aaaaaaaceeeeiiiidnoooooouuuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr';   
$val = utf8_decode($val);
$val = strtr($val, utf8_decode($a), $b);
$val = strip_tags(trim($val));
$val = strval($val);
$val = preg_replace('/[^\w\s]/', '', $val);
$val = strtolower($val);
$val = preg_replace('/[_\s]+/', '-', $val);
$val = preg_replace('/-+/', '-', $val);
$val = preg_replace('/^-/', '', $val);
return $val;

}

this solves the problem.

Please @patrick

because this has not yet been resolved, I’m a customer like everyone else.
It’s very simple to put the code I sent.

I really feel ignored by the wappler team.

This has been fixed in Wappler 4.6

This topic was automatically closed after 47 hours. New replies are no longer allowed.