J
JS
I was wondering why one would specify character encoding of 1252 vs.
ISO-8859-1 when retrieving data via HTTP. My circumstance is that I am
retrieving XML via HTTP with French characters in it and I have
specified the encoding as follows:
Dim str as New StreamReader([data source],
system.text.encoding.getencoding("ISO-8859-1"))
Doing this works fine and I retrieve the data without the special
French characters being dropped. When I change the above line of code
to the following:
Dim str as New StreamReader([data source],
System.Text.Encoding.GetEncoding(1252))
The end result is the same.
Is there any advantage to one encoding over another?
ISO-8859-1 when retrieving data via HTTP. My circumstance is that I am
retrieving XML via HTTP with French characters in it and I have
specified the encoding as follows:
Dim str as New StreamReader([data source],
system.text.encoding.getencoding("ISO-8859-1"))
Doing this works fine and I retrieve the data without the special
French characters being dropped. When I change the above line of code
to the following:
Dim str as New StreamReader([data source],
System.Text.Encoding.GetEncoding(1252))
The end result is the same.
Is there any advantage to one encoding over another?