Garbage Characters

0 favourites
  • 5 posts
From the Asset Store
2d warrior machrom platformer game character assets
  • Hi,

    I'm new here and i did one webapp to a client with C2. Until now everything is working, but my client reported an strange thing, which is challenging me. When opened in Mozilla there are some letters, see the picture, which came from nowhere! If I open the code in mozilla they are before the start of page, like you can see in this picture.

    Somebody knows why this happens?

    Thanks

  • Hey I forgot to put the link to the webapp, to you can see it "in loco".

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Apparently those characters lies in the index.html file of your exported project.

    Simply delete them there (you might wanna check this tutorial for more infos).

  • It's a problem with your server.

    Those characters are usually hidden: they mark the file as being encoded with UTF-8 (unicode). All files and text used by Construct 2 are encoded in UTF-8 to ensure it works in all languages across the world.

    However, your server is set up differently and appears to try to force the ISO-8859-1 character set instead of UTF-8. I guess your server is set up to serve Portuguese text, and this conflicts with the UTF-8 text in the HTML. Note that only Firefox gets confused and displays the UTF-8 marker: Internet Explorer and Chrome seem to still figure out that they should use UTF-8. Using a tool to check server headers, you can see your server reponds with

    Content-Type: text/html; charset=ISO-8859-1

    Content-Language: pt-BR

    Scirra.com responds with:

    Content-Type: text/html; charset=utf-8

    Your server should really be using UTF-8 since it's the only way to ensure that text is displayed properly for everyone regardless of their language. If you don't know how to do it get in touch with whoever runs your server. Another workaround which isn't as good is to simply convert your index.html file to the ISO-8859-1 character set (a program like Notepad++ is good for this), but it will keep happening with files Construct 2 exports until you fix the server.

  • Thanks Ashley,

    I will send your report to the webmaster of my client.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)