Not really sure what to do. Is this any unicode issue? The code does not have any known errors as terminal shows it running and stopping properly. Just the log report is being weird
-
That does in fact seems to be an encoding problem. Did you open the file with another program? If so, you might have saved it and it changed the encoding. Same thing happens if you do not specify the same enconding when moving between Powershell 5.1 and 7.xsirtao– sirtao2024-07-12 14:52:28 +00:00Commented Jul 12, 2024 at 14:52
-
@sirtao yup that was the issue, thank youSazid Ludi– Sazid Ludi2024-07-12 14:57:22 +00:00Commented Jul 12, 2024 at 14:57
-
Usually with >> or out-file -append, two different encodings are in the same file. utf16 has twice as many nulls. Or some windows utilities make a utf16 file without a bom.js2010– js20102024-07-12 15:23:10 +00:00Commented Jul 12, 2024 at 15:23
Add a comment
|
1 Answer
Figured it out, used notepad to check encoding and the text file was in wrong format (UTF 8). Changed it to UCS 2 LE BOM