-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG]: volt upper filter does not work on special local characters #16543
Comments
Volt's compiler seems to directly rewrite It seems that v4 calls I'm not sure which is preferable. |
The You can achieve what you want by doing this: {{ helper.upper('abc čžé') }} I know this might not be ideal because you might have similar code all around the place, but this is the way to get the UTF-8 functions to help you there (vs. the This assumes you have the mbstring extension loaded and in your container you have a service called |
So this is not a bug and we can now choose according to our needs, right? |
Actually it is a bug, since it changes the behavior from v4 to v5. What I posted above is a workaround. I will make the necessary adjustments for this and have it use the |
This has been resolved with #16545 Thank you @kowach and @s-ohnishi |
After upgrading from Phalcon 4 to Phalcon 5.5 upper filter in volt does not work on utf8 characters.
Steps to reproduce the behavior:
Results
ABC čžé
(only english letters are changed)Outputs is OK
ABC ČŽÉ
The function is pretty simple Upper.zep
This could only happen if function_exists("mb_convert_case") returns false, but I don't see how.
Details
The text was updated successfully, but these errors were encountered: