Replacing special characters in text file using PowerShell

I would normally use Perl and regex for this, but to simplify portability between Windows computers, I am hoping to accomplish the following using PowerShell instead:

A CSV file containing incorrectly encoded characters needs to be parsed and corrected. The natural language in question is Norwegian.

Output from a third party system substitutes the characters æ ø å with ‘ › †

As I am not comfortable with PowerShell at all at the present, I was hoping someone could mock up a small script which reads a source text file from disk and outputs it into another.

Thank you

1

1 Answer

Appleoddity's referenced article covers what I am looking for. Thanks!

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like