Currently, I’m encountering an issue related to character encoding while compiling the library. It should be able to handle strings containing Hispanic characters (áéíóúñ) with accents or accented characters when using UTF-8, but it seems that this isn’t being achieved correctly.
The workspace encoding within the IDE is set to UTF-8.
Example code:
import { playerEvent } from "@/controller/player";
import { logger } from "@/logger";
import { MyDialog } from "@/models/dialog";
import { DialogStylesEnum, IDialog } from "@infernus/core";
playerEvent.onCommandText("test", async (player, ...args) => {
const StringData = `
Normal characters: aeiou.
Hispanic characters: áéíóú.
`;
const DialogData: IDialog = {
style: DialogStylesEnum.MSGBOX,
caption: "Charset issue",
info: StringData,
button1: "Close"
};
const res = await new MyDialog(DialogData).show(player);
logger.info(res);
return true;
});
Currently, I’m encountering an issue related to character encoding while compiling the library. It should be able to handle strings containing Hispanic characters (áéíóúñ) with accents or accented characters when using UTF-8, but it seems that this isn’t being achieved correctly.
The workspace encoding within the IDE is set to UTF-8.
Example code: