Class

eZ\Publish\Core\Persistence\Utf8Converter

class Utf8Converter

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

Methods

static string toUTF8Character(int $charCode)

Convert character code to UTF-8 character.

static int toUnicodeCodepoint(string $char)

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

Details

at line 28
static public string toUTF8Character(int $charCode)

Convert character code to UTF-8 character.

Parameters

int $charCode

Return Value

string

at line 88
static public int toUnicodeCodepoint(string $char)

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

Parameters

string $char

Return Value

int