Actions
Bug #95189
closedPadding with TypoScript strPad does not work correctly with multibyte characters
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2021-09-11
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
When using strings with multibyte characters, the strings are not padded correctly with TypoScript strPad.
The result is the same as with PHP str_pad() which also does not work correctly with multibyte characters (as str_pad() is used under the hood).
Example: Reproduce¶
TypoScript
page > page = PAGE page.30 = TEXT page.30.value = hellö page.30.value.strPad { length = 10 padWith = * type = both } page.40 = TEXT page.40.value = <br/> page.50 = TEXT page.50.value = hello page.50.value.strPad { length = 10 padWith = * type = both }
Result¶
**hellö** **hello***
Expected result¶
**hellö*** **hello***
Versions¶
- TYPO3 10.4 (latest)
- TYPO3 master (11-dev)
Actions