locked
How to get a string as i saved using Encoding RRS feed

Answers

  • Try Encoding.GetEncoding(1252).GetString(byteArray);

    "Windows-1252" is the western european encoding and often used for german.

    • Marked as answer by Manjula.C Monday, February 4, 2013 4:40 AM
    Tuesday, January 29, 2013 3:14 PM
  • From the result of the ASCII decoding, it's a one-byte encoding. Probably the system default. Try using Encoding.Default.GetString(...).
    • Marked as answer by Manjula.C Tuesday, January 29, 2013 12:50 PM
    Tuesday, January 29, 2013 12:41 PM

All replies

  • From the result of the ASCII decoding, it's a one-byte encoding. Probably the system default. Try using Encoding.Default.GetString(...).
    • Marked as answer by Manjula.C Tuesday, January 29, 2013 12:50 PM
    Tuesday, January 29, 2013 12:41 PM
  • Try Encoding.GetEncoding(1252).GetString(byteArray);

    "Windows-1252" is the western european encoding and often used for german.

    • Marked as answer by Manjula.C Monday, February 4, 2013 4:40 AM
    Tuesday, January 29, 2013 3:14 PM