Legacy GM Localization Problem (Special Characters)

P

psyke

Guest
Hello everyone, I'm having some problems with in-game localization.
I'm using a text file to load the strings (language.json) and also using the function json_decode (so I can get the text and transform into a ds_map). The problem I'm having is that characters like "ã", "é", "ô" and "ç" are not showing.

I'm using sprite_add_font, and I have added all the characters that shows in the Font Table section from the docs, so I don't think the problem is on the sprite.

I also tried saving the JSON file as UTF-8 using Notepad, but this doesn't works. Am I missing something here? Thanks!
 
P

psyke

Guest
Just wanted to add this image, it's the font sprite with all the characters I want to use.
 

Attachments

P

psyke

Guest
Hi again, I managed to solve my own problem by using the function font_add_sprite_ext instead of font_add_sprite. Then I used this charmap string:
Code:
'!"#$%&"()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^_`~¡©¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝÞß'
It seems like it's a bug with the font_add_sprite function.
 
Top