How to decode a string in PowerShell

I have a file with a line like this

\ u0440 \ u043e

How can I decode this string in PowerShell?

+4
source share
1 answer

You can use the regex unescape function :

[regex]::Unescape("\u0440\u043e")

Conclusion:


+4
source

All Articles