STAR TREK 2d20
  1. #1

    ISO-8859-1 problem with filename in module

    I have a filename for an image which has an extended character in it - æ, specifically Ræsvælg.

    Within FGC, there are no errors which opening or working with this image within the campaign, and the exported module also works in FGC (both the reference manual and the NPC's link to the image).

    Within FGU, there are no errors which opening or working with this image within the campaign. However, when using the module it cannot load the image, so it breaks the reference manual as well as opening the NPC.

    The campaign I am working on has dozens of the extended characters and they all seem to work in other locations. This was the only image with the extended character in the filename though, so I think it's specific to that.

    In the db.xml, you sometimes see the actual character, and sometimes the encoded version, depending if the node type is a string:

    e.g <name type="string">Ræsvælg</name>

    It's not consistent though.. on some string values it encodes - here's one example for a caption
    e.g. <caption type="string">Image: R&amp;#230;sv&amp;#230;lg</caption>

    When looking at db.xml from the campaign, the link to the image looks like this:
    <bitmap>campaign/images/Ræsvælg.jpg</bitmap>

    Bottom line, I believe the issue is with the export function not recognizing the extended character from the OS.
    If you open the module archive and look at it, the filename within the module is recorded as Rµsvµlg.jpg instead if Ræsvælg.jpg

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,234
    Blog Entries
    9
    Not sure if this matters, but might; what o/s are you running and what language settings is it using?

    That info might be needed to reproduce this.

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  3. #3
    Windows 10 - English (US)
    I am also doing this from FGC for compatibility. I did not try to export it from FGU to see if that handled it any differently.

    So just to clarify
    - If the filename has an extended character in it (e.g. Ræsvælg.jpg) , it gets encoded correctly in the db.xml which is outputted
    - When the images themselves are compiled into the .mod file, the filename isn't written the same (e.g. Rµsvµlg.jpg)

    Here's a screenshot showing the image name within the .mod
    image list encoding.png

  4. #4
    For now, I suggest you just change the file name to get it working. (Rasesvaelg.jpg)

    Regards,
    JPG

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in