utf8.reverse
Client-side
Server-side
Shared
Reverses the input string.
Syntax
string utf8.reverse ( string input )Required Arguments
- input: A string character sequence.
Returns
- string: reversed string
Returns a string containing the reversed original UTF-8 string.
Code Examples
shared
This example shows how to reverse a UTF-8 string.
local input = "今日は素晴らしい日です"local output = utf8.reverse(input)outputConsole(output) -- すで日いしら晴素は日今