# Internationalisation and Unicode

> Section in “New and Extended Functionality” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/>

## In this section

- [Unicode Code Point Escape Syntax](https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/unicode-code-point-escape-syntax/index.html.md): PHP 7 supports Unicode code point escape sequences such as \u{1F602} in double-quoted strings; an invalid sequence after \u{ now triggers an error.
- [Improvements to mbstring](https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/improvements-to-mbstring/index.html.md): The mbstring extension now uses the Unicode 11 data tables, supports strings larger than 2 gigabytes, and offers significantly improved performance.
- [Splitting Multibyte Strings with mb_str_split](https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/splitting-multibyte-strings-with-mb_str_split/index.html.md): The new mb_str_split() function of the mbstring extension splits multibyte strings such as UTF-8 text into chunks of characters instead of bytes.
- [New Constants for Spoofchecker](https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/new-constants-for-spoofchecker/index.html.md): Since PHP 7.4, Spoofchecker::setRestrictionLevel() of the intl extension accepts new class constants like HIGHLY_RESTRICTIVE and needs ICU 58.1 or newer.
- [Added Normalizer::getRawDecomposition() Method](https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/added-normalizergetrawdecomposition-method/index.html.md): PHP 7.3 adds Normalizer::getRawDecomposition(), meant to return the decomposition mapping of a Unicode code point, though the authors only ever got null.
- [New Functions mb_chr() and mb_ord()](https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/new-functions-mb_chr-and-mb_ord/index.html.md): mb_chr() and mb_ord() in the mbstring extension are the multibyte equivalents of chr() and ord(), which fail on UTF-8 characters; UTF-8 is the default.
- [New Function mb_scrub()](https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/new-function-mb_scrub/index.html.md): The new mb_scrub() function in the mbstring extension repairs multibyte strings such as UTF-8 by replacing invalid byte sequences with a substitute.
- [Array Argument for mb_convert_encoding()](https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/array-argument-for-mb_convert_encoding/index.html.md): Since PHP 7.2, mb_convert_encoding() accepts an array of strings in addition to a single string and then returns an array of converted strings.

---

Previous: [WebP Support in imagecreatefromstring()](https://php7explained.com/new-and-extended-functionality/graphics/webp-support-in-imagecreatefromstring/index.html.md) | Next: [Unicode Code Point Escape Syntax](https://php7explained.com/new-and-extended-functionality/internationalisation-and-unicode/unicode-code-point-escape-syntax/index.html.md)
