encodings
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | encodings [2018/01/27 20:12] (current) – created wolfgangriedmann | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Encodings ====== | ||
+ | |||
+ | Since all strings in .NET are Unicode strings (see [[string_char_byte|String, | ||
+ | |||
+ | For the Encodings please see the classes that inherit from the [[https:// | ||
+ | |||
+ | * System.Text.ASCIIEncoding: | ||
+ | * System.Text.UnicodeEncoding: | ||
+ | * System.Text.UTF32Encoding: | ||
+ | * System.Text.UTF7Encoding: | ||
+ | * System.Text.UTF8Encoding: | ||
+ | |||
+ | The Encoding class has a few very interesting static methods (please see MSDN for further details): | ||
+ | |||
+ | * Convert converts a byte array from one encoding to another | ||
+ | * GetBytes converts a character array or a string to a byte array | ||
+ | * GetChars converts a byte array to a char array | ||
+ | * GetString converts a byte array to a string | ||
+ | |||
+ | It may sound difficult, but it is neccessary to understand the encodings when you deal with different systems (disk, database, network). Otherwise you will corrupt your data. | ||
encodings.txt · Last modified: 2018/01/27 20:12 by wolfgangriedmann