Re: Encoding.Default and Encoding.UTF8
From: Hardy Wang (hardy_wang_at_marketrend.com)
Date: 06/09/04
- Next message: Martin Marinov: "Re: need some SQL help"
- Previous message: Teros: "Re: How to use session values in .CSS file?"
- In reply to: Jon Skeet [C# MVP]: "Re: Encoding.Default and Encoding.UTF8"
- Next in thread: Jon Skeet [C# MVP]: "Re: Encoding.Default and Encoding.UTF8"
- Reply: Jon Skeet [C# MVP]: "Re: Encoding.Default and Encoding.UTF8"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 9 Jun 2004 10:18:39 -0400
Thanks,
Anybody knows are there any characters in French and Spanish greater than
128 ASCII code?
-- WWW: http://hardywang.1accesshost.com ICQ: 3359839 yours Hardy "Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message news:MPG.1b30ca2a1ed9934b98ab92@msnews.microsoft.com... > Hardy Wang <hardy_wang@marketrend.com> wrote: > > I have following code: > > Encoding mode; // Encoding.Default or Encoding.UTF8 > > FileStream sb = new FileStream(fullPathAndFileName, FileMode.Create); > > StreamWriter sw = new StreamWriter(sb, mode); > > sw.Write(textContent); > > sw.Close(); > > > > My question is under what situation, the saved files are different by > > calling Encoding.Default and Encoding.UTF8. > > They'll almost certainly be different for any string containing non- > ASCII characters. They're likely to be the same for any string > containing solely ASCII characters. > > See http://www.pobox.com/~skeet/csharp/unicode.html for more > information. > > -- > Jon Skeet - <skeet@pobox.com> > http://www.pobox.com/~skeet > If replying to the group, please do not mail me too
- Next message: Martin Marinov: "Re: need some SQL help"
- Previous message: Teros: "Re: How to use session values in .CSS file?"
- In reply to: Jon Skeet [C# MVP]: "Re: Encoding.Default and Encoding.UTF8"
- Next in thread: Jon Skeet [C# MVP]: "Re: Encoding.Default and Encoding.UTF8"
- Reply: Jon Skeet [C# MVP]: "Re: Encoding.Default and Encoding.UTF8"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|