Difference between revisions of "utf8"

m
m (Updated parent and description)
Line 1: Line 1:
 
{{newin|[[0.9.2]]|092|type=module}}
 
{{newin|[[0.9.2]]|092|type=module}}
  
This library provides basic support for UTF-8 encoding. It provides all its functions inside the table returned when the library is <code>required</code>. This library does not provide any support for Unicode other than the handling of the encoding. Any operation that needs the meaning of a character, such as character classification, is outside its scope.
+
This library provides basic support for handling UTF-8 encoded strings. It provides all its functions inside the table returned by <code>require("utf8")</code>. This library does not provide any support for Unicode other than handling UTF-8 encoding. Any operation that needs the meaning of a character, such as character classification, is outside its scope.
  
 
You need to require the module like this:
 
You need to require the module like this:
Line 10: Line 10:
 
== Reference Manual ==
 
== Reference Manual ==
 
For detailed usage, see the [http://www.lua.org/manual/5.3/manual.html#6.5 reference manual].
 
For detailed usage, see the [http://www.lua.org/manual/5.3/manual.html#6.5 reference manual].
 +
 +
== See Also ==
 +
* [[parent::love]]
 +
* [[love.textinput]]
  
 
[[Category:Libraries]]
 
[[Category:Libraries]]
{{#set:Description=Provides basic support for UTF-8 encoding.}}
+
{{#set:Description=Provides basic support for manipulating UTF-8 encoded strings.}}
 
{{#set:LOVE Version=0.9.2}}
 
{{#set:LOVE Version=0.9.2}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|utf8}}
 
{{i18n|utf8}}

Revision as of 18:18, 17 March 2015

Available since LÖVE 0.9.2
This module is not supported in earlier versions.


This library provides basic support for handling UTF-8 encoded strings. It provides all its functions inside the table returned by require("utf8"). This library does not provide any support for Unicode other than handling UTF-8 encoding. Any operation that needs the meaning of a character, such as character classification, is outside its scope.

You need to require the module like this:

local utf8 = require("utf8")

Reference Manual

For detailed usage, see the reference manual.

See Also


Other Languages