PDA

View Full Version : Umlaut in text from lua script is not printed



JMessmer
October 7th, 2020, 10:28
I am using the latest version of FGU
FGU: v4.0.0 ULTIMATE (2020-10-01)
I have some text in a lua script that should be printed in the chat window right after launching the session


launchmsg = {
[...]
[2] = { sender = "", font = "narratorfont", icon = "DZ-Rulesetlogo", text = "von Verokh für SmiteWorks' Fantasy Grounds II - Besonderen Dank an Ginstor und Quitzlinga für ihre Mitarbeit." },
[...]
};

In FGC this works fine (see screenshot Screenshot 2020-10-07 112442.png) whereas in FGU it does not (see screenshot Screenshot 2020-10-07 112501.png).

LordEntrails
October 7th, 2020, 17:09
FGU strictly interprets the character set, FGC did not and allowed many characters that actually were not part of the spec to print. I forget the details (ISO-88xx? and something about Windows 128X characters about ACSII code 128 or something like that *G*

I'm guessing this falls into that category?

LordEntrails
October 7th, 2020, 17:11
Here's some posts that discuss/detail the actual issue;
- https://www.fantasygrounds.com/forums/showthread.php?54871-Font-Character-issues-in-FGU
- https://www.fantasygrounds.com/forums/showthread.php?49701-Will-there-be-CJK-characters-support-in-FGU&p=441935&viewfull=1#post441935
- https://fantasygrounds.com/forums/showthread.php?54935-Text-from-FG-to-FGU&p=514624&viewfull=1#post514624

JMessmer
October 7th, 2020, 17:40
Thanks a lot, LordEntrails. That solved my issue nice and easily. I just switched the file format from ANSI to UTF-8 and it worked :)

LordEntrails
October 7th, 2020, 21:54
Good, glad you figured it out. I wasn't the most coherent in my reply :)