Page MenuHomePhorge

D25092.1734638551.diff
No OneTemporary

D25092.1734638551.diff

diff --git a/src/utils/utf8.php b/src/utils/utf8.php
--- a/src/utils/utf8.php
+++ b/src/utils/utf8.php
@@ -289,7 +289,7 @@
*/
function phutil_utf8_strlen($string) {
if (function_exists('utf8_decode')) {
- return strlen(utf8_decode($string));
+ return strlen(mb_convert_encoding($string, 'ISO-8859-1'));
}
return count(phutil_utf8v($string));
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 20:02 (20 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015473
Default Alt Text
D25092.1734638551.diff (364 B)

Event Timeline