Gibberlings3/BG1NPC

Extended Sarevok's Diary for BG1EE is too long to fit in maximum size of one replica for two (eg Russian) and three (eg Chinese) bytes characters in utf-8.

abalabokhin opened this issue · 0 comments

The translation of Extended Sarevok's Diary (bg1npc_tmp.tra@575) on some languages can easily be bigger than 32 Kb in utf-8 encoding (BG1EE, EET), that is the maximum for dlg file. In this case the item description is empty. The reason is that some characters (eg all Russian alphabet characters) are more than on byte in utf-8 encoding.
Is it possible to split the item description in two or three parts, change the UI to show such a long description or fix it somehow else?

Added: I'm actually not sure that the limitation is 32 Kb, not 64 Kb, but for some reasons Russian text that is 26.2 Kb cannot be shown in the EE game (but works in vanilla BG). It might be the problem with encoding though.