I`m trying to find equivalent code in bash (Linux) to C# code.
I have this C# code:
// C# to convert a byte array to a string.
byte [] dBytes = ...
string str;
System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
str = enc.GetString(dBytes);
I'm running bash on fedora Linux machine.
I`m getting in bash a file containg all the byte array as text seperated by whitespace like this:
"72 0 101 0 108 0 108 0 111 0 32 0 87 0 111 0 114 0 108 0 100 0 33 0"
any ideas?