Project

General

Profile

Actions

Bug #54557

closed

CharsetConverter::crop calls utf8_char2byte_pos when encoding is utf-8

Added by Michiel Roos over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
Start date:
2013-12-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

  • Regular PHP substr() works fine on regular UTF-8 strings;
  • TYPO3 backend is fully UTF-8 based by default in 6.1;
  • Database connection is enforced to be UTF-8 during bootstrap;

The call to utf8_char2byte_pos() can be skipped and the substr() result returned immediately when the charSet is utf-8.

Actions

Also available in: Atom PDF