View Issue Details

IDProjectCategoryView StatusLast Update
0006411Multi Theft Auto : San AndreasClientpublic2011-10-01 18:58
Reporter[GP_A]XetaQuakeAssigned Toccw 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS Version7
Product Version 
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)
Description

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:

  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.

Relationships

child of 0006375 closed New issues Unicode issues 

Activities

[GP_A]XetaQuake

2011-08-26 14:15

viewer   ~~0014475

Oh, the category is wrong - should be Server.

MX_Master

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

---------
validate="false"
---------

in the meta.xml, example

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

ccw

2011-10-01 18:42

administrator   ~~0014987

Fixed in http://code.google.com/p/mtasa-blue/source/detail?r=3094

Issue History

Date Modified Username Field Change