Unsupported Charset Error
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
Unsupported Charset Error
Hi All:
Just released my third campaign, Alariel's Journey, and I'm getting reports of the following error:
Invalid or unsupported charset; utf8 or add-ons/Alariels_Journey/translations.
One player said this is crashing the game for him. Players are on Windows 7 using a 1.12 permutation of Wesnoth. I have encountered no such error in my test plays, but I tested this on OS-X only. Anyone have any idea what is causing this?
Error screen shot is attached!
Thanks
-=FL=-
Just released my third campaign, Alariel's Journey, and I'm getting reports of the following error:
Invalid or unsupported charset; utf8 or add-ons/Alariels_Journey/translations.
One player said this is crashing the game for him. Players are on Windows 7 using a 1.12 permutation of Wesnoth. I have encountered no such error in my test plays, but I tested this on OS-X only. Anyone have any idea what is causing this?
Error screen shot is attached!
Thanks
-=FL=-
Wesnoth stole my summer . . . again.
Re: Unsupported Charset Error
This is the culprit:
Code: Select all
[textdomain]
name="wesnoth-Alariels_Journey" path="data/add-ons/Alariels_Journey/translations"
[/textdomain]
Re: Unsupported Charset Error
I can confirm, and it somehow seems to be a Windows-specific issue. Hopefully we’ll figure out a fix for 1.12.5.
EDIT: Tracking as bug #23839 [Gna.org].
EDIT2: Committed the fix — it will be in 1.12.5.
EDIT: Tracking as bug #23839 [Gna.org].
EDIT2: Committed the fix — it will be in 1.12.5.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Unsupported Charset Error
Blast me for a noob (which I'm not, but anyway . . . ) I don't see what the problem is here. All of the main.cfg files for all three of the campaigns I've done are exactly the same regarding this. What needs to be done to fix it?
Thanks
-=Fl=-
Thanks
-=Fl=-
Wesnoth stole my summer . . . again.
Re: Unsupported Charset Error
I think the issue they are talking about is that the code is missing a line break between attributes (as mentioned in the most recent comment for bug #23839 [Gna.org]).
Re: Unsupported Charset Error
Yes. The missing line break results in this being interpreted as a declaration for a textdomain named
This wouldn’t have caused issues for any versions earlier than Wesnoth 1.11.19 on Windows other than your translations not working at all, but for 1.11.19 and later it results in unusual behavior due to a change in the implementation of translation support.
wesnoth-Alariels_Journeypath=data/add-ons/Alariels_Journey/translations
or so, which contains at least one slash in its name.This wouldn’t have caused issues for any versions earlier than Wesnoth 1.11.19 on Windows other than your translations not working at all, but for 1.11.19 and later it results in unusual behavior due to a change in the implementation of translation support.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Unsupported Charset Error
Ah, so. I thought that might be it. Two of my campaigns are missing the line break and one has a line break in the main.cfg. The two without line break are throwing this error, so of course, you are correct. Thanks for your help. I'll get this corrected in both campaigns today.
Wesnoth stole my summer . . . again.