utf8.reverse
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
Reverses the input string.
Syntax
string utf8.reverse utf8.reverse ( string input )Required Arguments
- input: A string character sequence
Returns
- string utf8.reverse: value
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 ) -- すで日いしら晴素は日今