Q: Converting a string to byte-array without using an encoding (byte-by-byte)
D: How do I convert a string to a byte[] in .NET (C#)?
Update: Also please explain why encoding should be taken into consideration. Can't I simply get what bytes the string has been stored in? Why is there a dependency on character encodings?