Unable to attach screenshot images in macOS 14.0 when Wikilinks turned off (urlencode (U+202F) char)

Steps to reproduce

The U+202F is used in file name captured by macOS standard screenshot tool for macOS 14.0 and above. To reproduce:

  1. Take a screenshot with Cmd-Shift-4
  2. Turn off “Use Wikilinks” in the Obsidian settings
  3. Drag the image into Obsidian editor page

The screeenshot file name uses ‘NARROW NO-BREAK SPACE’ (U+202F,or  ) instead of the space character between the time and ‘AM/PM’. This prevents the file from attaching to Obsidian. Remove that character and the file can be imported correctly.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Should see the image in the editor.

Actual result

The image cannot be shown.

Environment

MacOS Sonoma 14.1.1
Obsidian Version 1.4.16 (Installer 1.4.13)

Additional information

I reported this bug 2 months ago Here but the bug is still here. The cause of the bug is clear and should be an easy fix. Please fix it.

1 Like