|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-09-04 15:57 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2017-09-04 15:57 UTC] requinix@php.net
[2017-09-04 16:13 UTC] patrykmoura at gmail dot com
[2017-09-04 16:17 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 10:00:01 2025 UTC |
Description: ------------ Hello, When I do a wordwrap, or a preg_replace with a regex, or a implode with limit 10 with the word "Higienização", it returns "Higieniza??ão" instead of "Higienizaç ão". I guess there's something about the Ç word. Thanks Test script: --------------- echo wordwrap("Higienização", 10, " ", true); echo implode(PHP_EOL, str_split("Higienização", 10)); echo preg_replace('/([^\s]{10})(?=[^\s])/', '$1'.' ', $string); Expected result: ---------------- "Higienizaç ão" Actual result: -------------- "Higieniza??ão"