Bartimaeus Posted October 7, 2021 Share Posted October 7, 2021 And if so, how do I include an em-dash, as it keeps corrupting them to... – ...in-game instead of actual em-dashes. Quote Link to comment
Lava Posted October 7, 2021 Share Posted October 7, 2021 I suppose it depends. If the mod is for both old BG and EE, then you need to use conversion - either classic iconv (ANSI=>UTF-8) or use AL|EN's way to handle it. If the mod is EE only, then those .tra, .d, .tp2 and other files that include text, should be saved in UTF-8 and you do not need any conversions. The corrupted symbold - like those you mentioned - may happen if you use conversion (like iconv) on a text that already is UTF-8 and/or has symbols that do not show properly in ANSI. So, such thing may pop out if you're using — (in place where "-" symbol was most commonly used) and then treat it with conversion. That can cause weird things to happen. Quote Link to comment
Bartimaeus Posted October 7, 2021 Author Share Posted October 7, 2021 28 minutes ago, Lava said: I suppose it depends. If the mod is for both old BG and EE, then you need to use conversion - either classic iconv (ANSI=>UTF-8) or use AL|EN's way to handle it. If the mod is EE only, then those .tra, .d, .tp2 and other files that include text, should be saved in UTF-8 and you do not need any conversions. The corrupted symbold - like those you mentioned - may happen if you use conversion (like iconv) on a text that already is UTF-8 and/or has symbols that do not show properly in ANSI. So, such thing may pop out if you're using — (in place where "-" symbol was most commonly used) and then treat it with conversion. That can cause weird things to happen. Okay, cool, that answers that - just have to convert these files to ANSI and not have them already in UTF-8, then. Let's see if that works...and that does seem to have done the trick. Thanks! I can only assume that whatever issue(s) ToB has with UTF-8, there must not have had a special character that would cause a problem, since a bunch of my strings were already in UTF-8. Quote Link to comment
Lava Posted October 7, 2021 Share Posted October 7, 2021 (edited) If the mod is EE only, then do not convert it to ANSI. Leave them in UTF-8, but get rid of conversion (iconv) Edited October 7, 2021 by Lava Quote Link to comment
subtledoctor Posted October 7, 2021 Share Posted October 7, 2021 (edited) I've just stopped using en-dashes everywhere and replaced them with hyphens instead. It's the biggest source of these text issues, and the visual sacrifice of doing this - like, one or two pixels - is so minor as to be unnoticeable. Well, fine it's noticeable. But just not worth the effort IMHO. Edited October 7, 2021 by subtledoctor Quote Link to comment
Bartimaeus Posted October 7, 2021 Author Share Posted October 7, 2021 5 minutes ago, subtledoctor said: I've just stopped using en-dashes everywhere and replaced them with hyphens instead. It's the biggest source of these text issues, and the visual sacrifice of doing this - like, one or two pixels - is so minor as to be unnoticeable. Well, fine it's noticeable. But just not worth the effort IMHO. But...that would mean my descriptions wouldn't be consistent with descriptions that aren't mine. And that would be... Spoiler Quote Link to comment
Cahir Posted October 7, 2021 Share Posted October 7, 2021 3 hours ago, Bartimaeus said: But...that would mean my descriptions wouldn't be consistent with descriptions that aren't mine. And that would be... Reveal hidden contents Ouch, you hurt me to the core Let's call it my personal OCD. I've seen weirder Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.