Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Alice24 on Sat 09/03/2024 16:01:18

Title: Using Russian fonts, getting question marks "????" and other gibberish
Post by: Alice24 on Sat 09/03/2024 16:01:18
My game involves 2 languages, Russian and English that I mix in together in the dialogue. I'm getting question marks and other gibberish when trying to use Russian though.

I did add a Russian font which I downloaded but it didn't seem to change anything. For the record, I'm on Unicode (UTF-8).  Would love some assistance in this!
Title: Re: Using Russian fonts, getting question marks "????" and other gibberish
Post by: Crimson Wizard on Sat 09/03/2024 16:14:42
Things to double check:
1. Version of AGS. AGS supports Unicode since v3.6.0.
2. "Text format" property in the General Settings. Is it ASCII or Unicode?
3. Is the font Unicode-compatible or ANSI-compatible? The font must match the text format.

If you are working on translations:
4. Is there a "#Encoding" option present in TRS, and what is it set to? See manual for details:
https://adventuregamestudio.github.io/ags-manual/Translations.html#additional-options
Example:
Quote//#Encoding=UTF-8
5. Is TRS file itself saved in UTF-8 (no BOM) format?
6. Same question about font provided for this translation, is it Unicode or ANSI compatible? The font must match the translation format.

I think the easiest way to test whether this is a font's problem, is to take one of the standard Windows fonts, like Arial or Times New Roman, as these are Unicode fonts and have multiple alphabets in them. If this Windows font works with your game, then that other font is not suitable for unicode text.