_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
FrontPage › Utf-8ToUnicode
|
|
[edit]
1 power shell #utf8.txt(utf-8 ) 殊 unicode.txt(unicode)朱 覲
powershell -Command "Get-Content d:\utf8.txt -Encoding UTF8 | Set-Content -Encoding UNICODE d:\unicode.txt" [edit]
2 c# #/* * Created by SharpDevelop. * User: jaehak-lee * Date: 2016-03-28 * Time: ろ 4:25 * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Text; using System.IO; /* namespace utf8_to_unicode { public static class Program { static void Main(string[] args) { using (StreamReader sr = new StreamReader(args[0], Encoding.UTF8)) using (StreamWriter sw = new StreamWriter(args[1], false, Encoding.Unicode)) { string line; int i = 1; while ((line = sr.ReadLine()) != null) { if (i > 1) sw.Write("\r\n" + line); else sw.Write(line); i++; //sw.WriteLine(line); } } } } } */ namespace utf8_to_unicode { public static class Program { static void Main(string[] args) { using (StreamReader sr = new StreamReader(args[0], Encoding.UTF8)) using (StreamWriter sw = new StreamWriter(args[1], false, Encoding.Unicode)) { string line; line = sr.ReadLine(); if (line != null) sw.Write(line); while ((line = sr.ReadLine()) != null) { sw.Write("\r\n" + line); } } } } }utf8_to_unicode.zip
鏤
|
讌れ 觜 譯 螳れ蠍磯 讌襷 蟆一 蟶殊讌 . |