Discussion:
C#.Net如何將資料輸出為一個含unicode文字檔(*.txt)?
(时间太久无法回复)
Eric Tsai - œ²©v¿«
2007-01-13 13:46:17 UTC
Permalink
StreamWriter sw = new StreamWriter("C:\\output.txt", Encoding.UTF8);
sw.Write(".......................");
sw.WriteLine(".............................................");
sw.Close();
璉璉
2007-01-14 08:53:00 UTC
Permalink
¡H
ªœ±µ¥Î Encoding.Unicode šú±oŠì€žŠrŠê¡A«e­±¥[€W FF FE 2 bytes ÀÉÀY°µÃѧO¡C
©ó news:uhfC0kxNHHA.536%40TK2MSFTNGP02.phx.gbl µoªí
StreamWriter sw = new StreamWriter("C:\\output.txt", Encoding.UTF8);
sw.Write(".......................");
sw.WriteLine(".............................................");
sw.Close();
--
­·¬ê¬ì§ÞÅçÃÒŠ³­­€œ¥q ASP.NET Web News Reader 0.2.5 UTF-8 Beta
ºô¯žŠa¹Ï http://tlcheng.twbbs.org/wwwmap.htm
¬y°ìšŸ¬x/°Ï°ì€ôžê·œ/®}ª@ºô/ªŽºÀ¹Ï/»y­µ³q°T €å³¹»Pµ{Š¡
Basic/Fortran/Windows API/.Net/»²§U»¡©úÀÉ ­ì©lœX¡B€å³¹»P°Qœ×
·L³nµ{Š¡³]­p¡Bšt²ÎºÞ²zšÏ¥Î·s§Þ³Nœ×ŸÂ°Qœ×°Ï¡Aºô€ÍŠ^ÂЫá§Y®É²°T¡B¹q€l¶l¥ó³qªŸ¡G
MSDN: http://forums.microsoft.com/msdn-cht/default.aspx?siteid=14
TechNet: http://forums.microsoft.com/technet-cht/default.aspx?siteid=23
--
ASPNET News Reader http://tlcheng.twbbs.org/News/Reader.aspx
RSS 2.0 http://tlcheng.twbbs.org/News/rss2.aspx?Action=List&Newsgroup=microsoft.public.tw.dotnet.framework.aspnet
继续阅读narkive:
Loading...