Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: UTF-8 removes Special Characters  (Read 3583 times)

0 Members and 1 Guest are viewing this topic.

theflash

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
    • View Profile
UTF-8 removes Special Characters
« on: April 16, 2010, 03:48:27 PM »

Hello again my fellow wintermuters,

in what might very well be my last post here I present you the following problem:

We've used an ANSI encoded string.tab for a long time. Recently, we've updated this to an UTF-8 encoded string.tab. Ever since then, some special characters, most notably the German "ä", "ö" and "ü" cannot be displayed, not even by the System font for Game.Msg(). Switching back to the ANSI encoded .tab solves that, so this is definitely an issue with the UTF-8 encoded .tab file. I have no idea how to circumvent that.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: UTF-8 removes Special Characters
« Reply #1 on: April 16, 2010, 04:04:16 PM »

Are you using truetype fonts?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: UTF-8 removes Special Characters
« Reply #2 on: April 17, 2010, 07:36:41 AM »

Also make sure the string table is saved with BOM so that WME recognizes it as UTF-8 format.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Darky

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 109
    • View Profile
    • Spreadcamp
Re: UTF-8 removes Special Characters
« Reply #3 on: April 17, 2010, 01:26:44 PM »

I tried it with my own game too and after saving all my string tables with BOM i had no more trouble with the Umlauts in UTF-8 either. So it should work, theflash :) Thanks Mnemonic for the hint.
Logged

theflash

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
    • View Profile
Re: UTF-8 removes Special Characters
« Reply #4 on: April 19, 2010, 12:45:29 AM »

Are you using truetype fonts?

Yes.

Also make sure the string table is saved with BOM so that WME recognizes it as UTF-8 format.

How would I do this? I use Windows' Notepad. I googled it, by didn't find any information on HOW to save with BOM.
Logged
 

Page created in 0.032 seconds with 23 queries.