in reply to Re: How to convert a string like this: "\321\201\321\202\321\200\321\203\320\272\321\202\321\203\321\200\320\260" to a proper utf8?
in thread How to convert a string like this: "\321\201\321\202\321\200\321\203\320\272\321\202\321\203\321\200\320\260" to a proper utf8?
After seeing, that it works, I've moved perl oneliner to a file, so, now I do:git status -s|perl -nle 's/\\([[:digit:]]{3})/sprintf "%c", oct($1)/ge +; print'
git status -s|oct2char.pl
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to convert a string like this: "\321\201\321\202\321\200\321\203\320\272\321\202\321\203\321\200\320\260" to a proper utf8?
by Anonymous Monk on Apr 28, 2016 at 13:13 UTC | |
by igoryonya (Pilgrim) on Apr 28, 2016 at 19:25 UTC |