Difference between revisions of "Lua:utf8ToAnsi"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''function''' utf8ToAnsi(''String'') Converts a string in UTF8 encoding to Ansi. === Function Parameters === {|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" …')
 
m (Added CodeBox Template.)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''function''' utf8ToAnsi(''String'')
+
[[Category:Lua]]
 +
{{CodeBox|'''function''' utf8ToAnsi(''String'') ''':''' string}}
  
 
Converts a string in UTF8 encoding to Ansi.
 
Converts a string in UTF8 encoding to Ansi.
Line 15: 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