打印本文 打印本文 关闭窗口 关闭窗口
ASP.NET中同时支持简体和繁体中文
作者:武汉SEO闵涛  文章来源:敏韬网  点击数2063  更新时间:2009/4/23 10:40:04  文章录入:mintao  责任编辑:mintao
{

         get { return true; }

     }

 

     public override bool CanSeek

     {

         get { return true; }

     }

 

     public override bool CanWrite

     {

         get { return true; }

     }

 

     public override long Length

     {

         get { return 0; }

     }

 

     public override long Position

     {

         get { return _position; }

         set { _position = value; }

     }

 

     public override long Seek(long offset, System.IO.SeekOrigin direction)

     {

         return _sink.Seek(offset, direction);

     }

 

     public override void SetLength(long length)

     {

          _sink.SetLength(length);

     }

 

     public override void Close()

     {

          _sink.Close();

     }

 

     public override void Flush()

     {

          _sink.Flush();

     }

 

     public override int Read(byte[] buffer, int offset, int count)

     {

         return _sink.Read(buffer, offset, count);

     }

 

     //GB2312     936

     //Big5        950

     public override void Write(byte[] buffer, int offset, int count)

     {

          Encoding e=Encoding.GetEncoding(936);

         string str=e.GetString(buffer,offset,count);

          for(int i=0;i<str.Length;i++)

         {

              int j=_sGB.IndexOf(str[i]);

              if(j!=-1)str=str.Replace(_sGB[j],_tGB[j]);

         }

上一页  [1] [2] [3]  下一页

打印本文 打印本文 关闭窗口 关闭窗口