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
In url helper have a method url_title(). It can makes a slug from string. It also support Unicode. But it not totally support Unicode.
I tried to do a string to slug but codeigniter gives output:
$cname = "মশিউর রহমান";
echo url_title($cname, '-', TRUE);
Output: মশউর-রহমন
$cname = "মশিউর রহমান";
url_title($cname, '-', TRUE, '[^a-z0-9\x{0980}-\x{09ff}]');
Output: মশিউর-রহমান
It works and output same as my expected.
I add a pattern option that anyone can replace there string as they want.
I hope the changes will be add next version. If I do any worng. Please comment on this issue.
The text was updated successfully, but these errors were encountered:
mmrtonmoybd
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Jun 28, 2020
In url helper have a method url_title(). It can makes a slug from string. It also support Unicode. But it not totally support Unicode.
I tried to do a string to slug but codeigniter gives output:
$cname = "মশিউর রহমান";
echo url_title($cname, '-', TRUE);
Output: মশউর-রহমন
Expect: মশিউর-রহমান
I do few changes in system/Helpers/url_helper.php
In before
///////////////////////////////
/////////////////////////////
I do few changes
In after
////////////////
$cname = "মশিউর রহমান";
url_title($cname, '-', TRUE, '[^a-z0-9\x{0980}-\x{09ff}]');
Output: মশিউর-রহমান
It works and output same as my expected.
I add a pattern option that anyone can replace there string as they want.
I hope the changes will be add next version. If I do any worng. Please comment on this issue.
The text was updated successfully, but these errors were encountered: