Letter combos causing a question mark to appear in GZDoom

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
Kostov
 
 
Posts: 2020
Joined: Thu Dec 26, 2013 3:26 pm
Location: Sweden
Contact:

Letter combos causing a question mark to appear in GZDoom

Post by Kostov »

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
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

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

Post by Marisa the Magician »

Wait, GZDoom isn't utf-8?
User avatar
Kostov
 
 
Posts: 2020
Joined: Thu Dec 26, 2013 3:26 pm
Location: Sweden
Contact:

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

Post by Kostov »

Unicode? Not that I know of.
User avatar
phantombeta
Posts: 2088
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

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

Post by phantombeta »

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

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

Post by Graf Zahl »

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
Kostov
 
 
Posts: 2020
Joined: Thu Dec 26, 2013 3:26 pm
Location: Sweden
Contact:

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

Post by Kostov »

Aaah. Okay. I thought Windows-1252 was the main codepage. Now I know what to look out for.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

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

Post by Graf Zahl »

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
Kostov
 
 
Posts: 2020
Joined: Thu Dec 26, 2013 3:26 pm
Location: Sweden
Contact:

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

Post by Kostov »

Sure! I’ll send them in a PM.
User avatar
theleo_ua
Posts: 162
Joined: Sun Feb 07, 2016 11:38 am
Operating System Version (Optional): Windows 10
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Ukraine
Contact:

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

Post by theleo_ua »

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
Post Reply

Return to “General”