I am encountering an issue with Chinese and Japanese text. I am using these languages in a plain text field that does not allow markup. I am finding that Chinese and Japanese content is not wrapping correctly.

Example: http://www.manh.com/zh-cn/products/warehouse-management (Chinese characters on header image just under "Warehouse Management").

I don't believe that PHP wordwrap() is working correctly on multibyte. Is there a workaround or does someone have a suggestion on how to address this problem?

Comments

goodwillhinton created an issue. See original summary.

Version: 8.1.2 » 8.1.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.1.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

quietone’s picture

Status: Active » Closed (duplicate)
Issue tags: +Bug Smash Initiative
Related issues: +#540228: Implement a UTF8-safe wordwrap()

This is a duplicate of #540228: Implement a UTF8-safe wordwrap().

Therefore, closing as a duplicate. If that is wrong, reopen the issue, by setting the status to 'Active', and add a comment.

Thanks!