Powershell write to file creates strange characters



The file was created by using the command  add-content without definition of encoding (default ANSI encoding). Later on lines where added by using command out-file (default Unicode encoding)


Do not mix the two line writer add-content and out-file without definining encoding.

This entry was posted in Fix IT and tagged , . Bookmark the permalink.

Comments are closed.