UTF-8 encoding for accented characters in FGU?
Hi everyone,
As I'm working in a ruleset. I found out that whilst I can have accented characters display (á, é, í, ó, ú, ñ, etc...) from the spanish alphabet by modifying the xml encoding from iso-8859-1 to UTF-8. LUA doesn't "recognize" them.
An example is trying to parse them with a .find.
I'm trying to detect the score in an ability that has the format: "ABILITY_NAME SCORE_VALUE".
So, I do a string.find and it cuts as soon as it encounters an accented character.
e.g.: Prestidigitación 19 cuts at Prestidigitaci and stops there.
Doing a couple of days of research, it seems like the issue may be that the os.locale of Fantasy Grounds itself is set up at iso-8859-1 or another encoding that is not UTF-8 or latin-1.
Is there a chance that for a future patch the encoding of the application itself can be set to UTF-8 allowing for most of the characters out there?