vtils

Home > utils > characterToCodepoint

characterToCodepoint() function

UTF8 字符转为 Unicode 码点。

Signature:

export declare function characterToCodepoint(character: string): string;

Parameters

Parameter Type Description
character string 字符,支持多个字符,返回的码点将以 - 分割

Returns:

string