You could change the $OutputEncoding variable before writing to the file. The other option is not to use the >
operator, but instead pipe directly to Out-File
and use the -Encoding
parameter.
More Related Contents:
- Is there a Windows command shell that will display Unicode characters?
- Printing Unicode characters to the PowerShell prompt
- What’s the complete range for Chinese characters in Unicode?
- What is the difference between UTF-8 and Unicode?
- What are Unicode, UTF-8, and UTF-16?
- What is the proper way to URL encode Unicode characters?
- FPDF utf-8 encoding (HOW-TO)
- PowerShell script runs when pasted into the PowerShell window, but not when run from shortcut
- How does UTF-8 “variable-width encoding” work?
- What’s the best option to display Unicode text (hebrew, etc.) in VB6
- Unicode range for Japanese
- Should I use accented characters in URLs?
- Decode PowerShell output possibly containing non-ASCII Unicode characters into a Python string
- List of all unicode’s open/close brackets?
- What’s the difference between UTF-8 and UTF-8 with BOM?
- How can I get the Unicode code point(s) of a Character?
- Difference between Big Endian and little Endian Byte order
- python 3.0, how to make print() output unicode?
- What is the range of Unicode Printable Characters?
- Print Directory & File Structure with icons for representation in Markdown [closed]
- complete, monospaced Unicode font? [closed]
- Classic ASP: How to write unicode string data in classic ASP?
- What does it mean when my text is displayed as Question Marks?
- Convert unicode code point to literal character in Go
- Using box-drawing Unicode characters in batch files
- What does u’\ufe0f’ in an emoji mean? Is it the same if I delete it?
- How can I use Unicode characters on the Windows command line?
- Input unicode string with pyautogui
- unicode().decode(‘utf-8’, ‘ignore’) raising UnicodeEncodeError
- Why is Unicode restricted to 0x10FFFF?