Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ramorama on Sat 15/04/2017 14:18:08

Title: Displaying UTF-8 characters in AGS
Post by: Ramorama on Sat 15/04/2017 14:18:08
If I would make a Russian Translation of a game what should I do that my AGS game is able to display Cyrillic characters?
AGS only supports ASCII code.
Title: Re: Displaying UTF-8 characters in AGS
Post by: Snarky on Sat 15/04/2017 14:36:13
AGS doesn't currently support UTF-8 or any other Unicode format.

However, you can get Cyrillic characters in ASCII by choosing an appropriate code page: https://www.ascii-codes.com/cp855.html

I'm not sure exactly how you do it, but I think it might be as easy as setting the code page setting in Windows, and just typing in the Cyrillic text into the document. Then you need a font with the Cyrillic characters in the corresponding slots.
Title: Re: Displaying UTF-8 characters in AGS
Post by: Crimson Wizard on Sun 16/04/2017 00:59:04
Not ASCII, but ANSI, codepage Windows-1251.
https://en.wikipedia.org/wiki/Windows-1251

The rest is correct, whoever types in texts need to switch to Russian locale (unless they already use it) and save translation file in ANSI format.

I know that there is a russian AGS community that does game translation and has a library of compatible fonts for this task... but I forgot how to contact them (I was on their forum a long while ago).
Here is just a bunch of working fonts that I happened to have on disk: https://www.dropbox.com/s/vca1tswlzd8fjmn/ags%20rus%20fonts.rar?dl=0

But of course you are not limited to them, you can create your own, if you use any font editor and make sure that letters are arranged in the order of the codepage referenced above.
Title: Re: Displaying UTF-8 characters in AGS
Post by: Ramorama on Sun 16/04/2017 09:21:46
Thank you both! :smiley: