ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. utf8Len

Function

utf8Len

Server and clientMiscellaneousTrilogy Hub only

Another name for utfLen: counts the characters in UTF-8 text (accented letters count as one character, not two bytes).

Syntax

int utf8Len(string input)

Arguments

inputstring
The text.

Returns

The number of characters.

Example

outputServerLog(utf8Len("żółw")) -- 4

See also