Skip to main content

Get Character

Captures one or more characters and their UTF-16 codes from a string.

Input​

NameData TypeDescription
Source StringStringThe string to get character info from.
Char IndexNumberThe position of the character to get. Index starts at 0.

Output​

NameData TypeDescription
CharStringThe character to get from the string.
Char CodeStringThe UTF-16 code of the character.
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies