You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah any version. Default BM2SM encoding uses ANSI right? I have to manually resave files using utf-8 via notepad to make those non-Roman and special characters display correctly.
However! This does not write the byte order mark. Reading further in the MSDN documentation, we see this: This behavior is different from the behavior provided by the encoding object in the Encoding.UTF8 property. To specify a BOM and determine whether an exception is thrown on invalid bytes, use a constructor that accepts an encoding object as a parameter, such as StreamWriter(String, Boolean, Encoding) or StreamWriter.
So, when we use StreamWriter, we should specify Encoding.UTF8 in the constructor. This looks like a simple change.
No description provided.
The text was updated successfully, but these errors were encountered: