Difference between revisions of "Lua:utf8ToAnsi"

From Cheat Engine
Jump to navigation Jump to search
(Related Functions)
m (Added CodeBox Template.)
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 ===
* [[Lua:translate|translate]]
+
{{Strings}}
* [[Lua:ansiToUtf8|ansiToUtf8]]
 
* [[Lua:readString|readString]]
 
* [[Lua:writeString|writeString]]
 
* [[Lua:readStringLocal|readStringLocal]]
 
* [[Lua:writeStringLocal|writeStringLocal]]
 
* [[Lua:stringToByteTable|stringToByteTable]]
 
* [[Lua:wideStringToByteTable|wideStringToByteTable]]
 
* [[Lua:byteTableToString|byteTableToString]]
 
* [[Lua:byteTableToWideString|byteTableToWideString]]
 

Revision as of 23:34, 4 December 2025

<> Lua API Reference

function utf8ToAnsi(String) : string

Converts a string in UTF8 encoding to Ansi.

Function Parameters

Parameter Type Description
String string The string to convert

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Related Functions

String and Encoding Related Lua Functions