Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Static Public Member Functions | List of all members
eZ\Publish\Core\Persistence\Utf8Converter Class Reference

Class for converting UTF-8 characters to their decimal code points and vice versa. More...

## Static Public Member Functions
static | toUTF8Character ($charCode)
| Convert character code to UTF-8 character. More...
static | toUnicodeCodepoint ($char)
| Convert a single UTF-8 character into its decimal code point. More...

## Detailed Description

Class for converting UTF-8 characters to their decimal code points and vice versa.

The code originates from the eZUTF8Codec class available in lib/ezi18n/classes/ezutf8codec.php

Definition at line 17 of file Utf8Converter.php.

## Member Function Documentation

## ◆ toUnicodeCodepoint()

static eZ\Publish\Core\Persistence\Utf8Converter::toUnicodeCodepoint | ( |  | $char | ) |
| static

Convert a single UTF-8 character into its decimal code point.

Parameters

  string | $char |

Returns
  int

Definition at line 86 of file Utf8Converter.php.

## ◆ toUTF8Character()

static eZ\Publish\Core\Persistence\Utf8Converter::toUTF8Character | ( |  | $charCode | ) |
| static

Convert character code to UTF-8 character.

Parameters

  int | $charCode |

Returns
  string

Definition at line 26 of file Utf8Converter.php.

The documentation for this class was generated from the following file:

- Utf8Converter.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.