Cannot open file on paths with accented letters with emacsclientw (windows 11)

What happened?

I’m working in the folder C:/Users/username/OneDrive - Università degli Studi di Padova/, which contains the character à, and I’m trying to open the file main.m.

When I try to open the file using emacsclientw, it tells me the following: “Directory `c:/Users/laooree/OneDrive - Universit\340 degli Studi di Padova/’ does not exist! Create it? (y or n)”

What did you expect to happen?

The file should correctly open as in other paths not containing à character.

If I use emacs instead of emacsclientw as command, everything works fine. Moreover, in vanilla emacs this setup works correctly with both emacs or emacsclientw as commands.

Steps to reproduce

  1. Try to run the following command: emacsclientw "C:\Users\laooree\OneDrive - Università degli Studi di Padova\main.m"

System information

Windows 11


Loading data dump...