Markup gamecommand (menu_cmd red) does not output expected symbols with utf8 enabled
common/commands/markup.qc has not been updated for utf8 support. I do not know how utf8 compatibility works between clients and with the server, so I don't really know how to fix this. It involves adding 0xE000 to the original special character codes to get the utf8 character codes. I also do not know about the availability of chr(float ascii) in the menu and server VMs.
Adding Samual as watcher because he's the last person to have reviewed this code.
I didn't find a good category to put this in.
#1 Updated by MrBougo over 1 year ago
One additional issue is that this code uses strconv, which for some reason bears this warning:
string(float ccase, float calpha, float cnum, string s, ...) strconv = #224;// reformat a string with special color characters in the font, DO NOT USE THIS ON UTF8 ENGINES (if you are lucky they will emit ^4 and such color codes instead), the parameter values are 0=same/1=lower/2=upper for ccase, 0=same/1=white/2=red/5=alternate/6=alternate-alternate for redalpha, 0=same/1=white/2=red/3=redspecial/4=whitespecial/5=alternate/6=alternate-alternate for rednum.
It obviously fails to work with utf8.