Bug #95189
Updated by Sybille Peters about 3 years ago
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).
h2. Example: Reproduce
TypoScript
<pre>
page >
page = PAGE
page.30 = TEXT
# The input value is 34 signs long.
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
}
</pre>
h2. Result
<pre>
**hellö**
**hello***
</pre>
h2. Expected result
<pre>
**hellö***
**hello***
</pre>
h2. Versions
* TYPO3 10.4 (latest)
* TYPO3 master (11-dev)