Click here to Skip to main content
16,016,535 members
Home / Discussions / C#
   

C#

 
GeneralRe: textbox control with multi colored rows Pin
Aryadip8-Jun-04 2:48
Aryadip8-Jun-04 2:48 
GeneralRe: textbox control with multi colored rows Pin
gmahesh8-Jun-04 2:57
gmahesh8-Jun-04 2:57 
GeneralRe: textbox control with multi colored rows Pin
Aaron Eldreth8-Jun-04 3:47
Aaron Eldreth8-Jun-04 3:47 
GeneralRe: textbox control with multi colored rows Pin
gmahesh9-Jun-04 0:58
gmahesh9-Jun-04 0:58 
QuestionLoad file into string? Pin
Dominik Reichl8-Jun-04 1:43
Dominik Reichl8-Jun-04 1:43 
AnswerRe: Load file into string? Pin
Werdna8-Jun-04 3:27
Werdna8-Jun-04 3:27 
GeneralRe: Load file into string? Pin
Dominik Reichl8-Jun-04 4:14
Dominik Reichl8-Jun-04 4:14 
AnswerRe: Load file into string? Pin
Heath Stewart8-Jun-04 4:00
protectorHeath Stewart8-Jun-04 4:00 
If you're using the HttpWebRequest to request the files, then the HttpWebResponse will contain the encoding.

You can get the encoding by passing HttpWebResponse.ContentEncoding to Encoding.GetEncoding and create a StreamReader using that Encoding and HttpWebResponse.GetResponseStream.

If you read the documentation for the HttpWebResponse.GetResponseStream in the .NET Framework SDK, it even has an example (although they get the Encoding for "utf-8" - just replace that string with myHttpWebResponse.ContentEncoding in regard to the sample code).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Load file into string? Pin
Dominik Reichl8-Jun-04 4:19
Dominik Reichl8-Jun-04 4:19 
GeneralRe: Load file into string? Pin
Heath Stewart8-Jun-04 4:22
protectorHeath Stewart8-Jun-04 4:22 
GeneralRe: Draw Shape To Screen Pin
SJ_Phoenix8-Jun-04 0:24
SJ_Phoenix8-Jun-04 0:24 
GeneralRe: Draw Shape To Screen [EDITED] Pin
Dave Kreskowiak8-Jun-04 3:17
mveDave Kreskowiak8-Jun-04 3:17 
GeneralConverting an array list to double array Pin
_Searcher_8-Jun-04 0:01
_Searcher_8-Jun-04 0:01 
GeneralRe: Converting an array list to double array Pin
Aryadip8-Jun-04 2:08
Aryadip8-Jun-04 2:08 
GeneralRe: Converting an array list to double array Pin
_Searcher_8-Jun-04 3:59
_Searcher_8-Jun-04 3:59 
GeneralRe: Converting an array list to double array Pin
Heath Stewart8-Jun-04 3:56
protectorHeath Stewart8-Jun-04 3:56 
GeneralBanner in Help-Files? (How to?) Pin
Ariadne7-Jun-04 23:44
Ariadne7-Jun-04 23:44 
GeneralRe: Banner in Help-Files? (How to?) Pin
Heath Stewart8-Jun-04 3:52
protectorHeath Stewart8-Jun-04 3:52 
GeneralRe: Banner in Help-Files? (How to?) Pin
Ariadne8-Jun-04 21:14
Ariadne8-Jun-04 21:14 
GeneralRe: Banner in Help-Files? (How to?) Pin
Heath Stewart9-Jun-04 2:08
protectorHeath Stewart9-Jun-04 2:08 
GeneralGraphic drawing with OR transparency Pin
azusakt7-Jun-04 21:53
azusakt7-Jun-04 21:53 
GeneralRe: Graphic drawing with OR transparency Pin
Mazdak7-Jun-04 22:22
Mazdak7-Jun-04 22:22 
GeneralRe: Graphic drawing with OR transparency Pin
azusakt7-Jun-04 22:46
azusakt7-Jun-04 22:46 
GeneralRe: Graphic drawing with OR transparency Pin
Mazdak8-Jun-04 1:22
Mazdak8-Jun-04 1:22 
GeneralRe: Graphic drawing with OR transparency Pin
Dave Kreskowiak8-Jun-04 4:29
mveDave Kreskowiak8-Jun-04 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.