大网数据广告活动
网络与域名解析

URL-encoded UNC paths not URL-decoded in Windows 10, version 1803 and later versions

· 52CE 我爱测

In Windows 10, version 1803, and later versions of Windows URL-encoded UNC paths are no longer URL-decoded.

This article provides some information about URI-encoding in UNC paths interpreted literally in Windows 10, version 1803 and later.

Applies to:   Windows 10 - all editions
Original KB number:   4467268

Summary

In Windows 10, version 1803 and later versions of Windows, URLs (such as SharePoint document libraries) can't be referenced by Universal Naming Convention (UNC) paths that contain URI encoding characters.

For example, when the path http://myserver/Shared Documents is URI-encoded, the path becomes http://myserver/Shared%20Documents. Before Windows 10, version 1803, the UNC path \\myserver\shared%20documents could be used. After you upgrade to version 1803, the "%20" is no longer interpreted as a space but as the literal value "%20". This can prevent previously generated links from resolving to the correct http path.

More information

This is by design. The UNC pathing should be updated to reflect the literal path, and any URI-encoding characters should be removed. Or, use a scheme of file://so that the path is decoded. (For example: file://\\myserver\shared%20documents.)

To achieve parity with the local Windows file system naming convention, Windows 10, version 1803 introduces support for additional characters in file names and folders on web-based paths.

One of the previously unsupported characters is the percent sign (%). Because this character is the escape character that's used for URI encoding, a UNC path that has been URI-encoded will no longer be URI decoded. Instead, it will be treated as a literal path.

Windows style paths are not URIs and thus don't follow normal URI-encoding rules, so any characters that use percent encoding in URIs should be decoded when translating WebDAV-style paths back into Windows-style paths. Similarly, Windows-style paths don't use percent-encoding to represent special characters in file names, so whenever the WebClient service observes a percent character in a Windows style path when translating to a URI, the "%" character will be replaced by "%25" even when the "%" character is followed by two hex digits.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。