-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
url_title not detecting some special characteres #3038
Comments
Try like this function url_segment(string $text) : string
{
$text = url_title($text, '-', true);
helper('text');
$text = convert_accented_characters($text);
return $text;
} |
@natanfelles is absolutely correct. For a deeper explanation the HTTP spec (RFC-3986) does not allow characters outside of the US-ASCII as part of a URI, unless it's been encoded. That being said, I'm wondering if we should incorporate that into the @natanfelles @MGatner @michalsn what do you guys think? |
The |
Thank you. |
I remember many discussions about this one in the past. Personally, I would love to see Another option would be to introduce yet another parameter to If I gonna need this functionality I will probably write a simple helper for that, just like I always did in CI3. |
I think a good solution would be to create a new helper function in the url_helper: |
Resolved via #3086 |
Hey, it's so nice to participate in an improvement for this spectacular framework.
Yesterday I commit a change to a client system. When he try to create a resource all seems to be fine, but i used the url_title to slugify the title to url and save it to the database.
The problem is that did not detected some special characteres like ç,~,`
The text was updated successfully, but these errors were encountered: