Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] File:// link with encoded character doesn't open #15107

Open
1 task done
goozak opened this issue May 7, 2024 · 0 comments
Open
1 task done

[BUG] File:// link with encoded character doesn't open #15107

goozak opened this issue May 7, 2024 · 0 comments

Comments

@goozak
Copy link

goozak commented May 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

On my Windows desktop, I have a file named Employé.html (note the accented 'e').
If I open this file in Chrome, the address bar shows the full path C:/Users/myname/Desktop/Employé.html.
If I copy this URL from Chrome's address bar and paste it in N++, it looks like file:///C:/Users/myname/Desktop/Employ%C3%A9.html (note the encoded characters).
The link is highlighted by N++, but double-clicking it doesn't open it.
If I manually edit the link to be file:///C:/Users/myname/Desktop/Employé.html (with the accented letter) in N++, double-clicking it will work.
Pasting the link with the encoded characters in Chrome's address bar works as expected.

Note that a web URL, such as https://webserver.com/employ%C3%A9.htm, does work in N++, with the encoded characters.

Steps To Reproduce

  1. Create a local HTML file with an accented character in its name.
  2. Open this file in Chrome.
  3. Copy Chrome's URL and paste it in a Notepad++ document (note that the accented character is URL encoded).
  4. Double-click the link in Notepad++.

Current Behavior

Nothing happens.

Expected Behavior

The file should be open in the default browser

Debug Information

Notepad++ v8.6.5   (64-bit)
Build time : Mar 29 2024 - 17:04:43
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : -noPlugin
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : OFF
OS Name : Windows 10 Pro N (64-bit
OS Version : 22H2
OS Build : 19045.4291
Current ANSI codepage : 1252
Plugins : none

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant