# utf8(ロブロックス ライブラリ) > This library provides basic support for UTF-8 encoding. - URL:https://roblox.minecraft-okinawa.com/reference/libraries/utf8/ - 公式:https://create.roblox.com/docs/reference/engine/libraries/utf8 ## プロパティ - `utf8.charpattern: string`:The pattern "[%z\x01-\x7F\xC2-\xF4][\x80-\xBF]*", which matches exactly zero or more UTF-8 byte sequences, assuming that the subject is a valid UTF-8 string. ## 関数 - `utf8.char(codepoints: Tuple): string`:Converts zero or more codepoints to UTF-8 byte sequences. - `utf8.codes(str: string): function, string, int`:Returns an iterator function that iterates over all codepoints in a given string. - `utf8.codepoint(str: string, i: int, j: int): Tuple`:Returns the codepoints (as integers) from all codepoints in a given string. - `utf8.len(s: string, i: int, j: int): int`:Returns the number of UTF-8 codepoints in a given string. - `utf8.offset(s: string, n: int, i: int): int?`:Returns the position (in bytes) where the encoding of the n‑th codepoint of s (counting from byte position i) starts. - `utf8.graphemes(str: string, i: number, j: number): function`:Returns an iterator function that iterates over the grapheme clusters of a given string. - `utf8.nfcnormalize(str: string): string`:Converts the input string to Normal Form C. - `utf8.nfdnormalize(str: string): string`:Converts the input string to Normal Form D. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)