PowerShell: Get-FileEncoding

VertigoRay/ February 4, 2015/ Uncategorized/ 1 comments

I often work in PowerShell, and one day I needed to create a script that would pull the file encoding out a file. Encodings However, this proved to be difficult since most encodings don’t require a BOM (Byte Order Mark). Here’s some good information that I found on the subject: Automatically determining the correct encoding for a given byte array

Read More