Wordpress LScache Plugin: PHP Warning: htmlspecialchars(): charset UTF-8~ not supported, assuming utf-8
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, thanks for awesomeness! Im getting some lines in error_log and its not ending, 280MB error log lol. Report number: XHERULFY PHP Warning: htmlspecialchars(): charset `UTF-8 not supported, assuming utf-8 in /home/ /public_html/wp-content/plugins/litespeed-cache/inc/utility.class.php on line 586 574 to 590 below if ( $type ) // Remove potential param type from url $url = parse_url( htmlspecialchars_decode( $url ) ) parse_str( $url[ query ], $query ) $built_arr = array_merge( $query, LiteSpeed_Cache_Router::build_type( $type ) ) if ( $append_arr ) $built_arr = array_merge( $built_arr, $append_arr ) $url[ query ] = http_build_query( $built_arr ) self::compatibility() $url = http_build_url( $url ) $url = htmlspecialchars( $url ) return $url Can you try to change the line $url = htmlspecialchars( $url ) to $url = htmlspecialchars( $url, ENT_QUOTES, UTF-8 ) and see if the error is gone or not? Thanks. Awesome! Fastest reply i got (dont have gf) That one fixed it. Glad to hear that. We will add this to next release. Thanks for your feedback. Happy caching
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference