Using UTF-8 in the Windows Terminal


Windows is not known for its interporability with UTF-8 (and you can find countless search results on the matter). However, things have changed in Windows 10 and if you follow these steps, you can have a UTF-8 workflow.

  1. Get the new Windows Terminal. It has full support for Unicode and UTF-8.
  2. Download the new PowerShell. The new version of PowerShell is UTF-8 first, and will output UTF-8 files by default (see the default encoding of Out-File).
  3. Ensure that Windows Terminal uses pwsh.exe and not powershell.exe in the Windows Powershell profile.
  4. Enable the new UTF-8 option in Windows settings. Go to the language settings, click Administrative language settings, then Change system localeā€¦ and tick the Beta: Use Unicode UTF-8 for worldwide language support option.
  5. Restart your computer.

If you stick to using the new Windows Terminal, everything should read, write and display UTF-8 by default.