Jump to content

Is iconv Still Necessary for Converting Strings for EE Games?


Recommended Posts

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.

Link to comment
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.

Link to comment

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 by subtledoctor
Link to comment
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

giphy.gif

 

Link to comment
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

giphy.gif

 

Ouch, you hurt me to the core 😔 Let's call it my personal OCD. I've seen weirder 😋

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...