View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006411||Multi Theft Auto : San Andreas||Client||public||2011-08-26 14:11||2011-10-01 18:58|
|Target Version||1.1.1 R2||Fixed in Version||1.1.1 R2|
|Summary||0006411: MTA does not recognise UTF-8 without BOM (and luac can't compile UTF-8 files)|
Unfortunately, the official lua compiler (http://www.lua.org/manual/4.0/luac.html) 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:
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.
|Tags||No tags attached.|
Oh, the category is wrong - should be Server.
not DOM! > BOM (: (byte order mark)
and for compiled files use
in the meta.xml, example