Difference between revisions of "Lua:utf8ToAnsi"

From Cheat Engine
Jump to navigation Jump to search
m (Added CodeBox Template.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
'''function''' utf8ToAnsi(''String'') ''':''' string
+
{{CodeBox|'''function''' utf8ToAnsi(''String'') ''':''' string}}
  
 
Converts a string in UTF8 encoding to Ansi.
 
Converts a string in UTF8 encoding to Ansi.
Line 16: Line 16:
 
|}
 
|}
  
 
+
{{LuaSeeAlso}}
== See also ==
 
* [[Lua]]
 
* [[Help_File:Script engine|Script engine]]
 
  
 
=== Related Functions ===
 
=== Related Functions ===
* [[translate]]
+
{{Strings}}
* [[ansiToUtf8]]
 
* [[readString]]
 
* [[writeString]]
 
* [[readStringLocal]]
 
* [[writeStringLocal]]
 
* [[stringToByteTable]]
 
* [[wideStringToByteTable]]
 
* [[byteTableToString]]
 
* [[byteTableToWideString]]
 

Latest revision as of 23:34, 4 December 2025

<> Function

function utf8ToAnsi(String) : string

Converts a string in UTF8 encoding to Ansi.

Function Parameters[edit]

Parameter Type Description
String string The string to convert

See also[edit]

Lua
Script Engine

Related Functions[edit]

translate
utf8ToAnsi
readString
writeString
readStringLocal
writeStringLocal
stringToByteTable
wideStringToByteTable
byteTableToString
byteTableToWideString