亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? formmain.cs

?? 一個(gè)C#開發(fā)的簡繁體內(nèi)碼轉(zhuǎn)換系統(tǒng)。對做內(nèi)碼轉(zhuǎn)換的朋友會(huì)有一定幫助。
?? CS
?? 第 1 頁 / 共 2 頁
字號:
		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new FormMain());
		}

		string Gb2312_To_UniCode(string strGb2312)
		{
			System.Text.Encoding E_Gb2312 = System.Text.Encoding.GetEncoding("gb2312");
			System.Text.Encoding E_Utf8   = System.Text.Encoding.UTF8;
			return E_Utf8.GetString(System.Text.Encoding.Convert(E_Gb2312,E_Utf8,E_Gb2312.GetBytes(strGb2312)));
		}

		string UniCode_To_Gb2312(string strUnicode)
		{
			System.Text.Encoding E_Gb2312 = System.Text.Encoding.GetEncoding("gb2312");
			System.Text.Encoding E_Utf8   = System.Text.Encoding.UTF8;
			return E_Gb2312.GetString(System.Text.Encoding.Convert(E_Utf8,E_Gb2312,E_Utf8.GetBytes(strUnicode)));
		}

		string Gb2312_To_Big5(string strGb2312)
		{
			System.Text.Encoding E_Gb2312 = System.Text.Encoding.GetEncoding("gb2312");
			System.Text.Encoding E_Big5   = System.Text.Encoding.GetEncoding("big5");
			return E_Big5.GetString(System.Text.Encoding.Convert(E_Gb2312,E_Big5,E_Gb2312.GetBytes(strGb2312)));
		}

		string Big5_To_Gb2312(string strUnicode)
		{
			System.Text.Encoding E_Gb2312 = System.Text.Encoding.GetEncoding("gb2312");
			System.Text.Encoding E_Big5   = System.Text.Encoding.GetEncoding("big5");
			return E_Gb2312.GetString(System.Text.Encoding.Convert(E_Big5,E_Gb2312,E_Big5.GetBytes(strUnicode)));
		}

		private void Re_Insert_To_Item()
		{
			try
			{
				string[] files = System.IO.Directory.GetFiles(this.tBFilePath.Text);
				if(this.cLB_FilesList.Items.Count > 0)
				{
					this.cLB_FilesList.Items.Clear();
				}
				foreach (string file in files)
				{
					this.cLB_FilesList.Items.Add(System.IO.Path.GetFileName(file));
				}
			}
			catch(Exception e)
			{
			}
			/*
							for(int int1 = 0; int1 < files.Length; int1 ++)
							{
								this.cLB_FilesList.Items.Add(files[int1]);
							}
			*/
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			if(pathBrowser.ShowDialog() == DialogResult.OK)
			{
				this.tBFilePath.Text = pathBrowser.SelectedPath;
				Re_Insert_To_Item();
			}
		}

		private void tBFilePath_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			switch(e.KeyValue)
			{
				case 13:
					Re_Insert_To_Item();
					break;
				deafult:
					break;
			}
		}

		private void cbSelectAll_CheckedChanged(object sender, System.EventArgs e)
		{
			for(int int1 = 0; int1 < this.cLB_FilesList.Items.Count; int1++)
			{
				this.cLB_FilesList.SetItemChecked(int1, this.cbSelectAll.Checked);
			}
		}

		private void btGBtoUTF8_Click(object sender, System.EventArgs e)
		{
			this.pBTranStatus.Maximum = this.cLB_FilesList.CheckedItems.Count;
			this.pBTranStatus.Step = 1;
			string lineRead, lineWrite, sFN_Target;
			foreach (string file in this.cLB_FilesList.CheckedItems)
			{
				this.lbCurFile.Text = file;
				if(System.IO.Directory.Exists(this.tbTargetPath.Text) && (this.tbTargetPath.Text != this.tBFilePath.Text ))
				{
					sFN_Target = this.tbTargetPath.Text + "\\" + file;
				}
				else
				{
					sFN_Target = this.tBFilePath.Text + "\\" + file + ".UTF8";
				}
				System.IO.StreamReader trSource = new System.IO.StreamReader(this.tBFilePath.Text + "\\" + file, System.Text.Encoding.GetEncoding("gb2312"));
				System.IO.StreamWriter trTarget = new System.IO.StreamWriter(sFN_Target, false, System.Text.Encoding.UTF8);
/*
				char[] buffer = new char[512];
				int len;
				while(trSource.Peek() >=0)
				{
					len = trSource.Read(buffer,0,512);
					trTarget.Write(buffer,0,len);
				}
*/
  				while((lineRead = trSource.ReadLine()) != null)
				{
					lineWrite = this.Gb2312_To_UniCode(lineRead);
					if(this.cbReplaceCodePage.Checked)
					{
						if(lineWrite.IndexOf("charset=gb2312") > 0) lineWrite = (lineWrite.ToLower()).Replace("charset=gb2312", "charset=utf-8");
						lineWrite = (lineWrite.ToLower()).Replace("CodePage=936", "codepage=65001");					
						lineWrite = (lineWrite.ToLower()).Replace("CODEPAGE=\"936\"", "codepage=\"65001\"");
					}
					trTarget.WriteLine(lineWrite);
				}
				
				trTarget.Close();
				trSource.Close();
				this.pBTranStatus.PerformStep();
			}
		}

		private void btUTF8toGB_Click(object sender, System.EventArgs e)
		{
			this.pBTranStatus.Maximum = this.cLB_FilesList.CheckedItems.Count;
			this.pBTranStatus.Step = 1;
			string lineRead, lineWrite, sFN_Target;
			foreach (string file in this.cLB_FilesList.CheckedItems)
			{
				this.lbCurFile.Text = file;
				if(System.IO.Directory.Exists(this.tbTargetPath.Text) && (this.tbTargetPath.Text != this.tBFilePath.Text ))
				{
					sFN_Target = this.tbTargetPath.Text + "\\" + file;
				}
				else
				{
					sFN_Target = this.tBFilePath.Text + "\\" + file + ".gb";
				}
				System.IO.StreamReader trSource = new System.IO.StreamReader(this.tBFilePath.Text + "\\" + file, System.Text.Encoding.UTF8);
				System.IO.StreamWriter trTarget = new System.IO.StreamWriter(sFN_Target, false, System.Text.Encoding.GetEncoding("gb2312"));
/*
				char[] buffer = new char[512];
				int len;
				while(trSource.Peek() >=0)
				{
					len = trSource.Read(buffer,0,512);
					trTarget.Write(buffer,0,len);
				}
*/
				while((lineRead = trSource.ReadLine()) != null)
				{
					lineWrite = this.UniCode_To_Gb2312(lineRead);
					if(this.cbReplaceCodePage.Checked)
					{
						if(lineWrite.ToLower().IndexOf("charset=utf-8") > 0) lineWrite = (lineWrite.ToLower()).Replace("charset=utf-8","charset=gb2312");
						if(lineWrite.ToLower().IndexOf("codepage=65001") > 0) lineWrite = (lineWrite.ToLower()).Replace("codepage=65001","CodePage=936");					
						if(lineWrite.ToLower().IndexOf("codepage=\"65001\"") > 0) lineWrite = (lineWrite.ToLower()).Replace("codepage=\"65001\"","CODEPAGE=\"936\"");
					}
					trTarget.WriteLine(lineWrite);
				}
				trTarget.Close();
				trSource.Close();
				this.pBTranStatus.PerformStep();
			}
		}

		private void btTargetPate_Click(object sender, System.EventArgs e)
		{
			if(fbdTargetPath.ShowDialog() == DialogResult.OK)
			{
				this.tbTargetPath.Text = fbdTargetPath.SelectedPath;
			}
		}

		private void btBig5ToGb2312_Click(object sender, System.EventArgs e)
		{
			this.pBTranStatus.Maximum = this.cLB_FilesList.CheckedItems.Count;
			this.pBTranStatus.Step = 1;
			string lineRead, lineWrite, sFN_Target;
			foreach (string file in this.cLB_FilesList.CheckedItems)
			{
				this.lbCurFile.Text = file;
				if(System.IO.Directory.Exists(this.tbTargetPath.Text) && (this.tbTargetPath.Text != this.tBFilePath.Text ))
				{
					sFN_Target = this.tbTargetPath.Text + "\\" + file;
				}
				else
				{
					sFN_Target = this.tBFilePath.Text + "\\" + file + ".gb";
				}
				System.IO.StreamReader trSource = new System.IO.StreamReader(this.tBFilePath.Text + "\\" + file, System.Text.Encoding.GetEncoding("big5"));
				System.IO.StreamWriter trTarget = new System.IO.StreamWriter(sFN_Target, false, System.Text.Encoding.GetEncoding("gb2312"));
				while((lineRead = trSource.ReadLine()) != null)
				{
					lineWrite = this.Big5_To_Gb2312(lineRead);
					if(this.cbReplaceCodePage.Checked)
					{
						if(lineWrite.ToLower().IndexOf("charset=big5") > 0) lineWrite = (lineWrite.ToLower()).Replace("charset=big5","charset=gb2312");
//						if(lineWrite.ToLower().IndexOf("codepage=65001") > 0) lineWrite = (lineWrite.ToLower()).Replace("codepage=65001","CodePage=936");					
//						if(lineWrite.ToLower().IndexOf("codepage=\"65001\"") > 0) lineWrite = (lineWrite.ToLower()).Replace("codepage=\"65001\"","CODEPAGE=\"936\"");
					}
					trTarget.WriteLine(lineWrite);
				}
				trTarget.Close();
				trSource.Close();
				this.pBTranStatus.PerformStep();
			}
		}

		private void btGb2312ToBig5_Click(object sender, System.EventArgs e)
		{
			this.pBTranStatus.Maximum = this.cLB_FilesList.CheckedItems.Count;
			this.pBTranStatus.Step = 1;
			string lineRead, lineWrite, sFN_Target;
			foreach (string file in this.cLB_FilesList.CheckedItems)
			{
				this.lbCurFile.Text = file;
				if(System.IO.Directory.Exists(this.tbTargetPath.Text) && (this.tbTargetPath.Text != this.tBFilePath.Text ))
				{
					sFN_Target = this.tbTargetPath.Text + "\\" + file;
				}
				else
				{
					sFN_Target = this.tBFilePath.Text + "\\" + file + ".big5";
				}
				System.IO.StreamReader trSource = new System.IO.StreamReader(this.tBFilePath.Text + "\\" + file, System.Text.Encoding.GetEncoding("gb2312"));
				System.IO.StreamWriter trTarget = new System.IO.StreamWriter(sFN_Target, false, System.Text.Encoding.GetEncoding("big5"));
				while((lineRead = trSource.ReadLine()) != null)
				{
					lineWrite = this.Gb2312_To_Big5(lineRead);
					if(this.cbReplaceCodePage.Checked)
					{
						if(lineWrite.ToLower().IndexOf("charset=gb2312") > 0) lineWrite = (lineWrite.ToLower()).Replace("charset=gb2312","charset=big5");
					}
					trTarget.WriteLine(lineWrite);
				}
				trTarget.Close();
				trSource.Close();
				this.pBTranStatus.PerformStep();
			}
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色狠狠综合天天综合综合| 9191精品国产综合久久久久久| 99精品视频在线观看| 欧美日韩国产欧美日美国产精品| 久久免费看少妇高潮| 亚洲第一搞黄网站| 成人午夜看片网址| 精品国产乱码久久久久久老虎| 亚洲女人小视频在线观看| 国内精品免费在线观看| 欧美日韩色综合| 亚洲三级电影全部在线观看高清| 精品一区二区三区视频在线观看 | 国产亚洲成年网址在线观看| 亚洲成av人片在www色猫咪| 成人少妇影院yyyy| 久久婷婷一区二区三区| 久久精品久久99精品久久| 欧美日韩免费一区二区三区视频| 亚洲精品中文在线影院| av在线这里只有精品| 欧美高清在线一区二区| 国产剧情一区二区| 久久影视一区二区| 美女视频一区二区| 欧美一区二视频| 婷婷国产v国产偷v亚洲高清| 欧美在线你懂得| 亚洲精品老司机| 在线观看成人小视频| 亚洲欧美日韩久久| 91浏览器在线视频| 亚洲免费在线视频一区 二区| av不卡在线播放| 自拍偷拍亚洲综合| 一本到不卡精品视频在线观看| 欧美激情资源网| 99久久久久免费精品国产| 中文字幕一区二| 色悠悠久久综合| 亚洲国产一二三| 7777精品伊人久久久大香线蕉完整版 | 欧美激情中文字幕| 成人午夜在线播放| 亚洲摸摸操操av| 欧美亚洲国产一区二区三区| 亚洲成人精品影院| 538在线一区二区精品国产| 男女男精品视频| 精品处破学生在线二十三| 国产精品99久久不卡二区| 国产精品短视频| 欧美日韩一区二区电影| 麻豆国产精品一区二区三区 | 国产乱人伦精品一区二区在线观看| 色就色 综合激情| 一区二区在线观看免费视频播放| 国产成人av电影免费在线观看| 国产亚洲综合性久久久影院| 粉嫩av一区二区三区在线播放| 中文字幕一区免费在线观看| 在线免费观看不卡av| 蜜臀av一区二区在线观看| 久久久久久久久蜜桃| 色综合久久六月婷婷中文字幕| 午夜电影久久久| 国产午夜三级一区二区三| 日本丰满少妇一区二区三区| 蜜臀av一区二区在线免费观看| 国产精品欧美久久久久无广告| 欧美视频精品在线| 国产成人超碰人人澡人人澡| 一区二区三区日韩欧美| 精品裸体舞一区二区三区| 成人免费视频一区| 综合在线观看色| 日韩欧美国产系列| 91玉足脚交白嫩脚丫在线播放| 激情小说欧美图片| 亚洲欧美激情视频在线观看一区二区三区 | 欧美日高清视频| 国产激情一区二区三区四区| 亚洲超丰满肉感bbw| 国产区在线观看成人精品| 欧美性受xxxx黑人xyx性爽| 国产一区二区三区四| 婷婷中文字幕综合| 亚洲欧洲国产专区| 欧美本精品男人aⅴ天堂| 91在线观看污| 国产精品亚洲成人| 七七婷婷婷婷精品国产| 亚洲综合丁香婷婷六月香| 国产免费成人在线视频| 欧美mv日韩mv国产网站| 欧美日韩大陆在线| 91麻豆免费观看| 国产69精品一区二区亚洲孕妇| 久久精品久久久精品美女| 丝袜美腿亚洲一区| 亚洲一区二区影院| 亚洲视频一二三| 日韩伦理免费电影| 国产欧美一区二区精品久导航| 欧美videossexotv100| 欧美高清视频www夜色资源网| 91久久精品国产91性色tv| 91小视频免费观看| 色综合天天综合网天天看片| 成人免费三级在线| 成人激情校园春色| 成人免费黄色大片| 成人激情文学综合网| 欧美性受极品xxxx喷水| 欧美国产精品一区二区| 欧美成人猛片aaaaaaa| 欧美日韩高清一区二区三区| 欧美综合视频在线观看| 日本高清成人免费播放| 91久久精品日日躁夜夜躁欧美| 色就色 综合激情| 欧美亚洲一区二区在线| 欧美日本精品一区二区三区| 欧美肥胖老妇做爰| 欧美一区二区在线免费播放| 日韩一卡二卡三卡国产欧美| 日韩欧美国产精品一区| 久久影音资源网| 国产精品第五页| 玉足女爽爽91| 日本在线观看不卡视频| 精品影院一区二区久久久| 丰满岳乱妇一区二区三区| av高清久久久| 欧美精品自拍偷拍| 精品国产区一区| 国产精品久久久久aaaa樱花| 一区二区三区.www| 久久精品免费观看| 欧美精品一区二区三区高清aⅴ| 免费看欧美女人艹b| 日本成人中文字幕在线视频| 免费在线观看日韩欧美| 国产一区二区视频在线播放| 国产成a人亚洲精| 色天天综合色天天久久| 欧美福利一区二区| 国产精品美女久久福利网站| 亚洲制服丝袜av| 韩国精品主播一区二区在线观看 | 日韩精品专区在线影院重磅| 2020国产精品| 亚洲天堂网中文字| 麻豆视频观看网址久久| 成人午夜电影久久影院| 91麻豆精品国产自产在线| 久久―日本道色综合久久| 亚洲午夜视频在线观看| 国产一区日韩二区欧美三区| 在线观看日韩高清av| 精品播放一区二区| 亚洲一区在线电影| 懂色av中文一区二区三区| 91麻豆精品国产91久久久久久| 亚洲国产日韩av| 成人免费视频免费观看| 色丁香久综合在线久综合在线观看 | 蜜臀av一级做a爰片久久| 成人app在线观看| 欧美一二三区在线| 亚洲特级片在线| 国产精品亚洲第一区在线暖暖韩国| 在线视频欧美区| 国产精品久久久久久久蜜臀 | 一个色妞综合视频在线观看| 国产精品一区二区三区乱码| 在线91免费看| 一区二区三区欧美视频| 成人免费观看男女羞羞视频| 26uuu精品一区二区三区四区在线| 久久看人人爽人人| 性做久久久久久免费观看欧美| 99久久综合色| 中文字幕在线观看不卡| 国产精品一区二区你懂的| 制服丝袜av成人在线看| 亚洲午夜久久久久久久久电影网 | 国产精品成人免费| 国产在线精品国自产拍免费| 欧美优质美女网站| 国产精品午夜在线观看| 国产精品 欧美精品| 日韩美女主播在线视频一区二区三区| 亚洲一区在线播放| 欧美一a一片一级一片| 亚洲精品欧美激情| 99re成人精品视频| 亚洲欧美自拍偷拍色图| 成人免费va视频| 国产精品久久三区|