Letter combos causing a question mark to appear in GZDoom

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

Letter combos causing a question mark to appear in GZDoom

Postby Undead » Fri Aug 17, 2018 5:55 am

So, there are a few combinations of letters that, when typed into a string or a chat message, cause a question mark to appear in GZDoom, in place of the two letters that were just written.

An example of this is øš, which I found out after messing around with the GZDoom codepage in trying to make the Serbian Cyrillic alphabet (by changing the Doom letters to Cyrillic based on Windows-1251 and using the letter combination шљ). If you copy and paste it into GZDoom chat, it ends up as a ? instead.

I have no idea what makes this happen. Does anyone know?

Image

(Original text: Имаш среће што те нисам ударио када си размишљао о одласку.)
User avatar
Undead
 
 
 
Joined: 26 Dec 2013
Location: Sweden

Re: Letter combos causing a question mark to appear in GZDoo

Postby Marisa Kirisame » Fri Aug 17, 2018 8:27 am

Wait, GZDoom isn't utf-8?
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Letter combos causing a question mark to appear in GZDoo

Postby Undead » Fri Aug 17, 2018 8:28 am

Unicode? Not that I know of.
User avatar
Undead
 
 
 
Joined: 26 Dec 2013
Location: Sweden

Re: Letter combos causing a question mark to appear in GZDoo

Postby phantombeta » Fri Aug 17, 2018 8:38 am

Marisa Kirisame wrote:Wait, GZDoom isn't utf-8?

Nope. There was some work on UTF-8 semi-recently, but nothing came out of that. :?
User avatar
phantombeta
In the meadow of sinful thoughts, every flower's a perfect one
 
Joined: 02 May 2013
Location: The United Soviet Socialist Dictatorship of Hueland
Discord: phantombeta#2461
Twitch ID: phantombeta_
Github ID: Doom2fan
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Letter combos causing a question mark to appear in GZDoo

Postby Graf Zahl » Fri Aug 17, 2018 9:51 am

That particular combination of characters gets caught in an attempt to convert UTF-8 to ISO 8859-1. GZDoom does NOT support Windows 1252 because that code page can conflict with UTF-8. Only proper ISO 8859-1 is supported.
In general I strongly advise against repurposing characters. If GZDoom ever gets a TrueType font renderer for some screens this will turn into unreadable gibberish.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Letter combos causing a question mark to appear in GZDoo

Postby Undead » Fri Aug 17, 2018 9:56 am

Aaah. Okay. I thought Windows-1252 was the main codepage. Now I know what to look out for.
User avatar
Undead
 
 
 
Joined: 26 Dec 2013
Location: Sweden

Re: Letter combos causing a question mark to appear in GZDoo

Postby Graf Zahl » Fri Aug 17, 2018 10:06 am

That aside, would you mind donating the characters so that they can be placed into the proper slots for cyrillic UTF-8 text?
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Letter combos causing a question mark to appear in GZDoo

Postby Undead » Fri Aug 17, 2018 10:07 am

Sure! I’ll send them in a PM.
User avatar
Undead
 
 
 
Joined: 26 Dec 2013
Location: Sweden

Re: Letter combos causing a question mark to appear in GZDoo

Postby theleo_ua » Mon Aug 20, 2018 2:39 am

Undead wrote:Sure! I’ll send them in a PM.


Russian fonts from Strife in PSD which Julian (Russian Doom author) gave me : https://drive.google.com/open?id=1sYj-q ... neaiYmwHUU
User avatar
theleo_ua
 
Joined: 07 Feb 2016


Return to General

Who is online

Users browsing this forum: MauiBot, Yandex [Bot] and 3 guests