how bash encode/decode characters with byte value greater than 0x7f 

Newsgroups:  gmane.linux.debian.user
Date:        Thu, 16 Nov 2006 11:59:59 -0500
> For characters whose byte values are greater than 0x7f, how bash
> encode/decode them?
>
> I.e.,
>
>  echo $'\312\325\274\376\317\344' | bash_encode
>
> Anybody know how to make the output similar to '\312\325\274\376\317\344'?

Just FYI,

$ echo $'\312\325\274\376\317\344' | od -b 0000000 312 325 274 376 317 344 012

T