View Issue Details

IDProjectCategoryView StatusLast Update
0006411Multi Theft Auto : San AndreasClientpublic2011-10-01 18:58
Reporter[GP_A]XetaQuake Assigned Toccw  
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS Version7
Target Version1.1.1 R2Fixed in Version1.1.1 R2 
Summary0006411: MTA does not recognise UTF-8 without BOM (and luac can't compile UTF-8 files)

Unfortunately, the official lua compiler ( can't compile files that are encoded in UTF-8, however compiling files in UTF-8 without dom works.

Sadly, MTA does not realize files that are encoded in UTF-8 without dom and outputs the warning "... is encoded in ANSI instead of UTF-8. Please convert your file to UTF-8". unicode characters are working ingame though.

There are two ways to solve this problem:

  1. somebody codes an lua compiler that can handle utf-8 files.
  2. MTA should deal correctly with files that are encoded in utf-8 without dom. This means in cleartext, the console warning should not be printed for such files.
Additional Information

It seems like MTA only outputs the warning for client files, maybe this is important to know.

There are several compiler GUIs out there, but any of these uses luac and therefore have the same problem with utf-8 files.

TagsNo tags attached.


child of 0006375 closed New issues Unicode issues 



2011-08-26 14:15

viewer   ~~0014475

Oh, the category is wrong - should be Server.


2011-08-26 16:08

viewer   ~~0014476

Last edited: 2011-08-26 19:56

not DOM! > BOM (: (byte order mark)

and for compiled files use


in the meta.xml, example

<script src="tools_c.compiled.lua" type="client" validate="false" />


2011-10-01 18:42

administrator   ~~0014987

Fixed in

Issue History

Date Modified Username Field Change