I’m beginner with ps and googling around for my problem. We’re using “imperia” for our websites. This tool has sometimes problems with special characters. So I will rename the files.
And BTW: When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
I have seen this before in a similar scenario (replacing the characters in usernames).
Try changing the encoding of the script file to UTF-8 with BOM rather than UTF-8. In VS Code the encoding is in the bottom right of the window or you can open the file in Notepad and choose the encoding in the Save As dialog.
thank you all for supporting. it works. the idea of changing the coding of the file… unbelievable. I try to find out the “intern mapping”. I know such errors when working with textfiles and visual studio