Default or specific encoding
| Registry value | alwayssaveindefaultencoding |
| Group Policy | Default or specific encoding |
| German version | Standardcodierung oder spezielle Codierung |
| Intune settings catalog | Default or specific encoding (User) |
| Scope | User · HKCU |
| ADMX | office16.admx · L_Defaultorspecificencoding |
Group Policy path
Registry
| Value | Data |
|---|---|
HKCU\Software\policies\microsoft\office\16.0\common\internet | |
| alwayssaveindefaultencoding | Enabled = 1 · Disabled = 0 |
| encoding | 1256 = Arabic Alphabet (Windows) · 28594 = Baltic Alphabet (ISO) · 1257 = Baltic Alphabet (Windows) · 852 = Central European (DOS) · 28592 = Central European Alphabet (ISO) · 1250 = Central European Alphabet (Windows) · 936 = Chinese Simplified (GB2312) · 52936 = Chinese Simplified (HZ) · 950 = Chinese Traditional (Big 5) · 866 = Cyrillic Alphabet (DOS) · 28595 = Cyrillic Alphabet (ISO) · 20866 = Cyrillic Alphabet (KOI8-R) · 1251 = Cyrillic Alphabet (Windows) · 28597 = Greek Alphabet (ISO) · 1253 = Greek Alphabet (Windows) · 1255 = Hebrew Alphabet (Windows) · 51932 = Japanese (EUC) · 50220 = Japanese (JIS) · 50222 = Japanese (JIS-Allow 1 byte Kana - SO/SI) · 50221 = Japanese (JIS-Allow 1 byte Kana) · 932 = Japanese (Shift-JIS) · 949 = Korean · 28593 = Latin 3 Alphabet (ISO) · 874 = Thai (Windows) · 1254 = Turkish Alphabet · 21866 = Ukrainian Alphabet (KOI8-RU) · 1200 = Universal Alphabet · 1201 = Universal Alphabet (Big-Endian) · 65001 = Universal Alphabet (UTF-8) · 1258 = Vietnamese Alphabet (Windows) · 28598 = Visual Hebrew (ISO) · 1252 = Western Alphabet (Windows) |
Not configured = the value does not exist – the application default applies and users may change the setting.
PowerShell
Check the current value (read-only)
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
$key = "$root\Software\policies\microsoft\office\16.0\common\internet"
foreach ($name in @('alwayssaveindefaultencoding', 'encoding')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}Admin rights needed: HKCU\Software\Policies is read-only for standard users. An elevated session writes to the admin's own HKCU – to set it for another signed-in user, change $root to Registry::HKEY_USERS\<SID>.
Enable
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
try {
$key = "$root\Software\policies\microsoft\office\16.0\common\internet"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'alwayssaveindefaultencoding' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
New-ItemProperty -Path $key -Name 'encoding' -PropertyType DWord -Value 1256 -Force -ErrorAction Stop | Out-Null # options: 1256 = Arabic Alphabet (Windows), 28594 = Baltic Alphabet (ISO), 1257 = Baltic Alphabet (Windows), 852 = Central European (DOS), 28592 = Central European Alphab
'Done.'
}
catch { Write-Error "Failed: $($_.Exception.Message)" }Reset to Not configured
# --- Settings --- $root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>' $key = "$root\Software\policies\microsoft\office\16.0\common\internet" Remove-ItemProperty -Path $key -Name 'alwayssaveindefaultencoding', 'encoding' -ErrorAction SilentlyContinue 'Policy values removed (Not configured).'
Intune (settings catalog)
Default or specific encoding (User)
Settings catalog → Add settings → search for the name above.
Intune Settings Catalog Viewer ↗
Alternative: custom profile (OMA-URI)
| OMA-URI | ./User/Vendor/MSFT/Policy/Config/office16v2~Policy~L_MicrosoftOfficeSystem~L_ToolsOptionsGeneralWebOptions~L_Encoding/L_Defaultorspecificencoding |
| Data type | String |
| Value | <enabled/> · <disabled/> |
This policy has options: add one <data id="…" value="…"/> per element after <enabled/>. The element IDs are in the ADMX file.
Cloud Policy
Cloud Policy (config.office.com → Customization → Policy Management) offers many user policies of the Microsoft 365 Apps – search for Default or specific encoding. It also applies to unmanaged devices and wins over GPO and Intune for the same setting.
Microsoft explanation
When enabled, either default encoding or a specified encoding will be used.
All policies in this category · All 945 policies of office16.admx