utf8.upper
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
Converts a UTF-8 string to title case (uppercase). If input is an integer, it is treated as a codepoint and a converted codepoint (integer) is returned.
Note
You may want to read up on case folding for more information about the use of this function.
Syntax
utf8.upper ( )Code Examples
server
This example shows how to convert a string to uppercase.
local output = utf8.upper( "WHAT ARE YOU UP TO? Do you like uppercase?" )outputConsole( output ) -- WHAT ARE YOU UP TO? DO YOU LIKE UPPERCASE?
local value = utf8.title( 1088 )outputConsole( value, type( value ) ) -- 1056, number