Answer the question
In order to leave comments, you need to log in
How to write any characters through unicode?
Faced with the problem that the Russian char writes through binarywriter unicode and the English char writes using a single-byte encoding
What needs to be done so that the output of any character is through unicode?
Answer the question
In order to leave comments, you need to log in
Create a BinaryWriter with unicode encoding
// public BinaryWriter(Stream output, Encoding encoding);
new BinaryWriter(output, Encoding.Unicode);
// или
new BinaryWriter(output, Encoding.Utf8);
Encoding.Utf8.GetBytes("мазафака");
and the English charm writes using a single-byte encoding
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question