SLUDGE: Make UTF-8 code portable

This commit is contained in:
Eugene Sandulenko 2017-07-13 22:41:03 +02:00
parent 469d1777c4
commit 8fde046360

View File

@ -31,7 +31,7 @@
namespace Sludge {
const char UTF8_CHECKER[] = {'U', 'N', -17, -65, -67, 'L', 'O', -17, -65, -67, 'C', 'K', 'E', 'D', '\0'};
const char UTF8_CHECKER[] = {'U', 'N', '\xef', '\xbf', '\xbd', 'L', 'O', '\xef', '\xbf', '\xbd', 'C', 'K', 'E', 'D', '\0'};
uint16 saveEncoding = false;
char encode1 = 0;
char encode2 = 0;