Open piotrpog opened 3 years ago
I’m not able to reproduce this:
What is your user account’s preferred language? That can have an effect on the ASCII character mappings.
@brandonkelly I tested both with preffered language and regional options set to english and non english, result is the same.
It worked alright with php 7.2, but this behaviour appeared when i switched to php 7.3 and 7.4. Maybe there is some useful info about server configuration that might cause it in phpinfo dump i sent to support email?
I’m testing with 7.4.
Try this:
> composer require yiisoft/yii2-shell
...
> php craft shell
>>> craft\helpers\StringHelper::toAscii('ąśźźXół')
What does that output?
After uploading Craft to new serwer, this probles started to occur. Non ascii characters are removed (not replaced) from uploaded filenames, until ascii character is encountered.
So,
ąśźźXół
turns intoXół
- everything beforeX
gets removed. IfconvertFilenamesToAscii
is set to true, this filename would change toXol
- but everything before X would be removed all the same.Here is my system info:
I also sent you my phpinfo dump on support email.