Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2869166
D25092.1736695615.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
364 B
Referenced Files
None
Subscribers
None
D25092.1736695615.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 15:26 (6 d, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1112635
Default Alt Text
D25092.1736695615.diff (364 B)
Attached To
Mode
D25092: Replace function utf8_decode() - deprecated since PHP 8.2
Attached
Detach File
Event Timeline
Log In to Comment