[Bug] Get-Encoding
returns UTF-8 instead of UTF-16 LE
#5894
Unanswered
nagromc
asked this question in
Help and Questions
Replies: 2 comments 2 replies
-
Hi, PowerShell does not have encoding detection. Windows PowerShell defaults to UTF-16LE while PowerShell (Core) defaults to UTF-8. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @nagromc! What's the error you're facing? I'll try to repro it |
Beta Was this translation helpful? Give feedback.
2 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Bug Report
Current Behavior
A little bit of debugging shows that
Get-Encoding
returns UTF-8 for the file of the file https://www.xyplorer.com/download/History.txtExpected Behavior
According to
chardetect
, VS Code, Sublime Text, and Notepad++ the character encoding is UTF-16 LE BOM.Additional context/output
I was trying to write an app manifest for xyplorer (paid version on my personal bucket).
Possible Solution
System details
Windows version: 10 22H2
OS architecture: 64bit
PowerShell version: 5 1 19041 3996
Additional software: [(optional) e.g. ConEmu, Git]
Scoop Configuration
Beta Was this translation helpful? Give feedback.
All reactions