CommandHelper

CommandHelper

46.5k Downloads

/foo = /bar invalid in UTF

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-2932 - Reported by opoq

When config.txt contains:
/foo = /bar
And encoding is UTF (with BOM)

Error:
[19:44:14 INFO]: COMPILE ERROR: Expected command (/command) at start of alias. Instead, found LIT (/foo)
:/mc/plugins/CommandHelper/config.txt:1

ANSI and UTF without BOM both function normally.

commented

Comment by LadyCailin

The byte order mark is actually a character that is inserted at the beginning of the file. Many things probably don't support that, though there's no valid reason for wanting that character literally, so I guess I can accept and ignore it. I think. Regardless, for now, change your encoding to UTF-8 without BOM.

commented

Comment by LadyCailin

Fixed. UTF-8 BOM is now recognized and discarded.