Turn off sending URL path as UTF-8
Désactiver l’envoi du chemin d’URL au format UTF-8
Explanation
This policy setting specifies whether to use 8-bit Unicode Transformation Format (UTF-8), a standard that defines characters so they are readable in any language. By using UTF-8, you can exchange Internet addresses (URLs) that contain characters from any language.
If you enable this policy setting, Internet Explorer does not allow sending the path portion of URLs as UTF-8. The user cannot change this policy setting.
If you disable this policy setting, Internet Explorer allows sending the path portion of URLs as UTF-8. The user cannot change this policy setting.
If you do not configure this policy setting, the user can allow or prevent the sending of the path portion of URLs as UTF-8.
Ce paramètre de stratégie spécifie l’utilisation ou non du format UTF-8, une norme qui définit les caractères pour qu’ils soient lisibles dans toutes les langues. Avec le format UTF-8, vous pouvez échanger des adresses Internet (URL) contenant des caractères de n’importe quelle langue.
Si vous activez ce paramètre de stratégie, Internet Explorer ne permet pas l’envoi de la partie chemin d’accès des URL au format UTF-8. L’utilisateur ne peut pas modifier ce paramètre de stratégie.
Si vous désactivez ce paramètre de stratégie, Internet Explorer permet l’envoi de la partie chemin d’accès des URL au format UTF-8. L’utilisateur ne peut pas modifier ce paramètre de stratégie.
Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut autoriser ou interdire l’envoi de la partie chemin d’accès des URL au format UTF-8.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings- Value name
UrlEncoding
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: inetres/UTF8
$k = 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UrlEncoding' -Value 1 -Type DWordDisable
# Disable: inetres/UTF8
$k = 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UrlEncoding' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/UTF8
$k = 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
Remove-ItemProperty -Path $k -Name 'UrlEncoding' -ErrorAction SilentlyContinue