Jump to content

Encoding


AHSS

Recommended Posts

All of my scripts are encoded in ANSI (didn't change it).

I compiled it, then this error comes:

"script path"[type] is encoded in ANSI instead of UTF-8. Please convert your file to UTF-8. 

UTF-8 is not supported by luac, UTF-8 without BOM is supported by luac, but not by MTA.

So, IDK what to do, how to stop that.

Another thing, can I use upgrade on a compiled script?

thanks in advance.

Link to comment

So work around it..

if luac doesnt support utf8 then change it to ansi and when mta requires you an utf8 file then change it to utf8..

easiest way I know to change encoding is by using Notepad ++

and yes you can use /upgrade on a compiled script (you should run the latest MTA build when you do this though)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...