Click here to Skip to main content
16,006,440 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: TrayIcon Pin
Andres Manggini23-Feb-02 16:50
Andres Manggini23-Feb-02 16:50 
GeneralIDE Qvestion Pin
23-Feb-02 13:00
suss23-Feb-02 13:00 
GeneralCollections and the VS.net IDE (UserControl integration in the VS.net IDE) Pin
Daniel 'Tak' M.23-Feb-02 1:01
Daniel 'Tak' M.23-Feb-02 1:01 
GeneralRe: Collections and the VS.net IDE (UserControl integration in the VS.net IDE) Pin
23-Feb-02 15:49
suss23-Feb-02 15:49 
GeneralJavascript in an .aspx page Pin
Jamie Nordmeyer21-Feb-02 8:45
Jamie Nordmeyer21-Feb-02 8:45 
GeneralRe: Javascript in an .aspx page Pin
23-Feb-02 15:52
suss23-Feb-02 15:52 
Generalcannot find or open a required DBG file VC.NET Pin
JoeSox21-Feb-02 8:23
JoeSox21-Feb-02 8:23 
GeneralEncoding using XmlTextWriter Pin
Aza21-Feb-02 4:21
Aza21-Feb-02 4:21 
Hi,

When trying to write my xml data to a string using StringWriter and XmlTextWriter
it writes to the string and sets the encoding to UTF-16. How do I control the encoding
when writing to a string (when writing to a file with Filestream I can control the encoding
through the XmlTextWriter constructor)?

Here is a codesnippet of my code:

System.IO.StringWriter sw = new System.IO.StringWriter();
XmlTextWriter writer = new XmlTextWriter(sw);
writer.Formatting = Formatting.Indented;
writer.WriteStartDocument();
....
writer.WriteEndDocument();

MessageBox.Show(sw.ToString());



Johannes
GeneralIDirectoryObject Pin
Steve Thresher21-Feb-02 2:58
Steve Thresher21-Feb-02 2:58 
GeneralNew to this whole .NET thing Pin
Aleksey Suvorov20-Feb-02 17:09
Aleksey Suvorov20-Feb-02 17:09 
GeneralRe: New to this whole .NET thing Pin
Mazdak20-Feb-02 18:51
Mazdak20-Feb-02 18:51 
GeneralRe: New to this whole .NET thing Pin
Aleksey Suvorov21-Feb-02 7:16
Aleksey Suvorov21-Feb-02 7:16 
GeneralRe: New to this whole .NET thing Pin
Kashif Manzoor25-Feb-02 19:29
Kashif Manzoor25-Feb-02 19:29 
GeneralRe: New to this whole .NET thing Pin
Aleksey Suvorov26-Feb-02 9:19
Aleksey Suvorov26-Feb-02 9:19 
Questionspeeeeeding up vs studio.net install? Pin
20-Feb-02 10:52
suss20-Feb-02 10:52 
AnswerRe: speeeeeding up vs studio.net install? Pin
James T. Johnson20-Feb-02 14:22
James T. Johnson20-Feb-02 14:22 
AnswerRe: speeeeeding up vs studio.net install? Pin
Aleksey Suvorov20-Feb-02 17:11
Aleksey Suvorov20-Feb-02 17:11 
General.NET Framework System Requirements Pin
Paul Watson20-Feb-02 10:11
sitebuilderPaul Watson20-Feb-02 10:11 
GeneralRe: .NET Framework System Requirements Pin
Anders Molin20-Feb-02 12:56
professionalAnders Molin20-Feb-02 12:56 
GeneralRe: .NET Framework System Requirements Pin
Aleksey Suvorov20-Feb-02 17:18
Aleksey Suvorov20-Feb-02 17:18 
QuestionHow to do a SetPixel with GDI+ Pin
20-Feb-02 7:06
suss20-Feb-02 7:06 
AnswerRe: How to do a SetPixel with GDI+ Pin
25-Mar-02 7:32
suss25-Mar-02 7:32 
QuestionHow do you make a form close by itself? Pin
HJB41719-Feb-02 21:14
HJB41719-Feb-02 21:14 
AnswerRe: How do you make a form close by itself? Pin
James T. Johnson19-Feb-02 22:29
James T. Johnson19-Feb-02 22:29 
GeneralRe: How do you make a form close by itself? Pin
HJB41720-Feb-02 2:03
HJB41720-Feb-02 2:03 

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.