-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fixed #11871 Replacing (deprecated) patchwork/utf8 by polyfill/mbstring. #11872
Conversation
Non-ASCII strings in the notes would likely not matter here. We invoke that library when converting non-ASCII database column names within custom fields. You can see https://github.com/snipe/snipe-it/blob/master/tests/Unit/CustomFieldTest.php for examples.
|
Unfortunately, this seems to break on PHP7.4 when I test it, which is our min requirement :( |
Aha - I think I got this working now. Thanks! |
Hm, now I'm getting
I might have to revert this one. |
Sorry, I only tested in php8, and it worked there for some reasons. Whithout path and a second parameter I got now rid of the error also in php 7.4. Just pushed the changes, further tests would be appreciated. |
Signed-off-by: Katharina Drexel [email protected]
Description
When doing a composer install you always get the warning
"Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead."
(s.a. https://packagist.org/packages/patchwork/utf8)
Fixes # (issue)
-> Replaced patchwork/utf8 by symfony/polyfill-mbstring and Patchwork\Utf8::utf8_encode by Polyfill\Mbstring::mb_convert_encoding
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Cretaed an asset and put some non-ascii characters* in the notes field. Checked if evrything was readable/editable afterwards.
DÉJÀ Σσς Iıİi
DÉJÀ ΣΣΣ IIİI
Déjà Σσς Iıİi
L’École supérieure de physique et de chimie industrielles de la ville de Paris, ou ESPCI ParisTech, est une grande école d’ingénieurs fondée en 1882. Elle est située rue Vauquelin sur la montagne Sainte-Geneviève dans le cinquième arrondissement de Paris.'
à-à-ÉÈà-à-
请按照以下说明保留您的当前密码并更新您的帐户。
点击这里确认验证
Test Configuration:
Checklist: