/*
* 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