- Home /
How to write Korean letters to file?
Hi,
I have a string variable in script containing Korean text and I want to write it to a text file.
Korean text appears good in Visual Studio in script. But when it write to text file - it becomes junk like "ìš©í".
string Content = "이용하실";
using (var writer = new BinaryWriter(File.OpenWrite("Test file.txt"), Encoding.UTF8)) {
writer.Write(Content);
writer.Close();
};
Comment
Your answer
Follow this Question
Related Questions
File.ReadAllText vs Resources.Load Character Encoding 1 Answer
Write file after build 1 Answer
How do I get Unity to start when it won't because files are "missing" (they aren't)? 0 Answers
Insert an image from a file. How? 0 Answers
Create a Temp folder, none created, or accidentally permanently deleted 1 Answer