Skip to content

[Feature] Title: Polish component names from WeiDU .tra files are displayed with wrong encoding #71

@mysummertimemy

Description

@mysummertimemy

Hello,

I noticed an encoding issue when Project Infinity displays component names from Polish WeiDU .tra files.

The same mod and the same Polish .tra file work correctly when installed through the regular WeiDU installer, but in Project Infinity the component names are displayed with garbled Polish characters.

Example from Tweaks and Tricks v8.39:

Expected:

Ulepszone wykrywanie pułapek
Przypomnienia o pułapkach
Intuicyjne wykrywanie pułapek
Rozszerzone zestawy dźwięków dla dołączanych NPC
Płaszcz Algernona możliwy do użycia raz dziennie

Displayed in Project Infinity:

Ulepszone wykrywanie pu£apek
Przypomnienia o pu£apkach
Intuicyjne wykrywanie pu£apek
Rozszerzone zestawy dŸwiêków dla do³¹czanych NPC
P³aszcz Algernona mo¿liwy do u¿ycia raz dziennie

Environment:

Project Infinity: 0.10.7
Game type: EET
Language order: Polish, English
Mod: Tweaks and Tricks v8.39
OS: Windows 11

The issue seems to happen when PI parses Polish component names from .tra files. It looks like Windows-1250 / Central European characters are not decoded correctly before being displayed in the UI.

Could Project Infinity either:

decode Polish WeiDU .tra files using the correct Central European code page when needed, or
use WeiDU output / WeiDU-compatible parsing for translated component names, or
allow the encoding of component-name .tra files to be specified or detected?

I am attaching a screenshot showing the garbled characters in PI. The same component names are displayed correctly when using the regular WeiDU installer.

Thank you!

Image Image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions