Issue Bug Closed

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

Michiel Roos 12/22/13, 00:41 updated 12/23/13, 10:57

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.

Reviews 1