Accented chars

Uto
Hi,

I've built my first Squiffy game, in spanish, and though while developing both on the Windows client and the online tool, all accented chars seem to work fine (even if you use the "preview" in the online tool), once you build it (using local client) or publish it (using "publish" option in the online tool), all accented chars get messed up.

This is the game:

http://textadventures.co.uk/games/view/ ... -del-cielo

It seems to be an enconding issue, but I have tried forcing the encoding to ISO and UTF-8 creating the index.template.html file, but didn't change anything.

I hope you can help :-)

Edit: I have also noticed the game doesn't show at all in iOS Safari on iPhone 5 (can't check others). It works on Android Tablet and iPad though. Actually, the "restart" link appears, but nothing else.

Uto
I have been able to get a fixed version, and I have uploaded it here, so you can try to find the differences:

http://www.ngpaws.com/demos/laluz/

This is the complete step list of what got me there:

1) Start developing game in the Windows version of Squiffy (64b). Everyhting working fine within the IDE, but when I built the game, accented chars were wrong.

2) Copy the code from the editor to the online editor, again everything when smooth, even the preview, but once I clicked on "publish", the final version had the accents messed up.

3) Copy the code again from the online version to the local one, just by copy/paste, not using the option to download it. I did it cause I had made some changes in the texts and I wanted to keep them in the local version. I clicked on "build" and suddenly the new version was working fine.

It seems the windows editor does work with a different encoding, and so pasting online and pasting back to Windows version fixed the problem.

Note: the new version has some texts changed, cause I've been working on it, but I'm sure you will notice soon what I mean with "messed up accented chars".

Uto
I created a new game with Squiffy, and this time I didn't use the Windows editor, but built it directly in the online tool. Sadly I got same result: everything goes fine in the internal tester and even in the "preview", but as soon as I clicked in "publish" the accented chars got all messed up.

I have managed to do a workaround, that is opening the preview, then go to "Save As" menu in my browser, and then upload the game I saved.

There should be some difference between the files used for preview and the files used for publishing that affect the text encoding, and that makes unconfortable using Squiffy for most languages other than english.

Alex
This is now fixed - I've published an update to the Squiffy compiler (4.0.2) that includes charset="UTF-8" in the script tag. This ensures accented characters don't get corrupted when the game is loaded.

You can fix an existing game by re-publishing it. Note that after doing this:

- due to caching, it may be 4 hours before your update shows up correctly (quick tip for this - you can bypass the cache by replacing media.textadventures.co.uk with textadventures.blob.core.windows.net in the URL)
- you'll need to click the Restart link to show the updated text, otherwise it will load the old corrupted characters from the save state in your browser's local storage

Uto
Great news! Thanks Alex ! I'm now in vacation but will update the game soon. Thanks for fast fix!

IFforClassroom
I've had a similar difficulty with Mandarin. Some characters get replaced with ��� marks. The spooky thing is it isn't in the same place in different iterations. One student finds them in setting text, which is annoying but not fatal. Others find them in links, which make the links unresponsive. I mean Squiffy understands what I want so well I think she must have a mind of her own. She's even cool if I flirt with her friends, like html and javascript. But then she does her own thing whenever She wants. First step towards Skynet.

This topic is now closed. Topics are closed after 180 days of inactivity.

Support

Forums