Re: [ADVANCED-DOTNET] Writing UTF8 File Problems

2006-10-16 Thread Jonathan Heizer
:34 PM To: 'Discussion of advanced .NET topics.' Subject: RE: [ADVANCED-DOTNET] Writing UTF8 File Problems Well, I switched back to using the streamwriter like this: writer = New IO.StreamWriter(Filename, False, Text.Encoding.UTF8) writer.Write(TempHTML) writer.Flush() writer.Close() Th

Re: [ADVANCED-DOTNET] Writing UTF8 File Problems

2006-10-16 Thread Jonathan Heizer
.NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Adam Sills Sent: Monday, October 16, 2006 2:45 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Writing UTF8 File Problems The *data* you're writing to the file is indeed UTF8 encoded, however your file needs a BOM

Re: [ADVANCED-DOTNET] Writing UTF8 File Problems

2006-10-16 Thread Adam Sills
The *data* you're writing to the file is indeed UTF8 encoded, however your file needs a BOM (Byte Order Mark) to indicate that it is a UTF8 file. By calling GetBytes on a string, you will not get a BOM in the returned set of bytes. This is why VS2005 doesn't recognize it as a UTF8 file; the file do

Re: [ADVANCED-DOTNET] Writing UTF8 File Problems

2006-10-16 Thread Peter Ritchie
I'm not clear what the problem is. Are you finding that when you open the file output via FileStream.Write() it is does not display as UTF8 until you change VS's encoding to UTF8? As that UTF8 w/signature? === This list is hosted by DevelopMentorĀ® http://www.deve