Broken preview for files with non-ascii letters in path

Steps to reproduce

  • Add an image attachment
  • Rename attachment with non-ascii characters, for example “Felicità”

Expected result

Working image preview

Actual result

Broken image icon and filename.
In console: Failed to load resource: net::ERR_FILE_NOT_FOUND
request url: … /snap/obsidian/x1/.config/obsidian/Obsidian%20Sandbox/Felicit%C3%A0.jpg

Environment

  • Operating system: Ubuntu 22.04
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.1.9
    Installer version: v1.1.9
    Operating system: #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 5.15.0-58-generic
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Restricted mode: off
    Plugins installed: 1
    Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

This problem is apparent when using “Custom attachment location” plugin because assets are saved in directories under note name, and if it contain non-ascii characters it breaks all note attachments.

I could not reproduce this on macOS:

I wonder if it’s an issue with Ubuntu’s file system? How well does Ubuntu work with non-ASCII characters normally?

I’m using ext4 and never had any problems with filesystem. Standard directories like Downloads, Pictures, Music are localized and used extensively.

You may have this problem

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.