Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
foreach (var f in new DirectoryInfo(@"...").GetFiles("*.cs", SearchOption.AllDirectories))
{
string s = File.ReadAllText(f.FullName);
File.WriteAllText(f.FullName, s, Encoding.UTF8);
}
Just think about whether you really need it and why utf-16 does not suit you (the same rc compiler does not support the eight, but supports 16)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question