Title: wp-includes/utf8.php | Developer.WordPress.org

---

# File: wp-includes/utf8.php

 * function[wp_is_valid_utf8()](https://developer.wordpress.org/reference/functions/wp_is_valid_utf8/)
 * Determines if a given byte string represents a valid UTF-8 encoding.
 * Used by [6 functions](https://developer.wordpress.org/reference/functions/wp_is_valid_utf8/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/wp_is_valid_utf8/#uses)
   | Source: [wp-includes/utf8.php:39](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/utf8.php#L39-L41)
 * function[wp_scrub_utf8()](https://developer.wordpress.org/reference/functions/wp_scrub_utf8/)
 * Replaces ill-formed UTF-8 byte sequences with the Unicode Replacement Character.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_scrub_utf8/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/wp_scrub_utf8/#uses)
   | Source: [wp-includes/utf8.php:109](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/utf8.php#L109-L122)
 * function[wp_has_noncharacters()](https://developer.wordpress.org/reference/functions/wp_has_noncharacters/)
 * Returns whether the given string contains Unicode noncharacters.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_has_noncharacters/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/wp_has_noncharacters/#uses)
   | Source: [wp-includes/utf8.php:159](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/utf8.php#L159-L164)