Project

General

Profile

Actions

Bug #95190

closed

Padding with Fluid ViewHelper format.padding does not work correctly with multibyte strings

Added by Sybille Peters over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
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

As in #95189, str_pad() is used under the hood which is not equipped to handle multibyte characters.

Example / reproduce

<f:format.padding  padLength="8" padString="*">hellö</f:format.padding>

Expected result

hellö***

Actual result

hellö**

Versions

TYPO3 10.4 (latest)
TYPO3 master (11-dev)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #95189: Padding with TypoScript strPad does not work correctly with multibyte charactersClosed2021-09-11

Actions
Related to TYPO3 Core - Bug #95673: Omitting value in PaddingViewHelper throws TypeErrorClosed2021-10-16

Actions
Actions

Also available in: Atom PDF