Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: c4_angel on July 30, 2017, 02:52:15 PM

Title: [Feature Request]Automatic change command window codepage
Post by: c4_angel on July 30, 2017, 02:52:15 PM
I'm a windows user with Chinese language(other non-latin language are the same I guess), Here is my issue:

Many mods put  both strings in command window and in-game strings together in one .tra file, e.g. setup.tra. After the first component installed in EE games, the .tra file was transferred to UTF-8 and reloaded, so all the strings in command window after that, like component names, will all become unreadable messy codes.
I think if WeiDU could automatically check the system codepage and change into UTF-8(65001) if needed,  like command chcp in windows?

Thank you.
Title: Re: [Feature Request]Automatic change command window codepage
Post by: Wisp on August 01, 2017, 01:32:31 PM
I don't think WeiDU can tell if it's hooked up to Windows' command prompt or something else, and even if I could determine that stdout was the command prompt, WeiDU needs to remain backwards-compatible with non-EE games, which do not use UTF-8.  Additionally, WeiDU is in the process of largely migrating away from interacting with the console, in favour of graphical front-ends, like BWS or Zeitgeist.

Fundamentally, this is a mod bug, because the mod is converting text that should not be converted.
Title: Re: [Feature Request]Automatic change command window codepage
Post by: c4_angel on August 02, 2017, 04:02:28 AM
Yes, it's what should mod's work, but most modders are using latin-language system like English and no need to concern that.
Title: Re: [Feature Request]Automatic change command window codepage
Post by: Wisp on August 06, 2017, 07:55:04 AM
Yeah, it's a sad situation, but ultimately there's little I can do on the WeiDU end to fix it.