The Computer Oracle

Finding out the default character encoding in Windows

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Book End

--

Chapters
00:00 Finding Out The Default Character Encoding In Windows
00:23 Accepted Answer Score 44
00:36 Answer 2 Score 3
00:58 Thank you

--

Full question
https://superuser.com/questions/670197/f...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #characterencoding

#avk47



ACCEPTED ANSWER

Score 44


You can check with PowerShell:

[System.Text.Encoding]::Default

which even enables you to check that across several machines at once.




ANSWER 2

Score 3


In .NET Core and .NET 5+ it is System.Text.Encoding.Default gives instance of UTF8. While .NET 4 and previous versions return Windows Active one. You can find more details on following: Microsoft Reference for Encoding

enter image description here