Commit d9c8c5e4 authored by Hayk's avatar Hayk Committed by mrbean-bremen
Browse files

Fixed inproper use of UTF8Encoding. As it was written before,...

Fixed inproper use of UTF8Encoding. As it was written before, UTF8Encoding.Default actually returns base class static property Encoding.Default which is system's default ANSI code-page based encoding that is not UTF8.
No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
......@@ -31,7 +31,7 @@ namespace SVGViewer
private void textBox1_TextChanged(object sender, EventArgs e)
{
using(var s = new MemoryStream(UTF8Encoding.Default.GetBytes(textBox1.Text)))
using(var s = new MemoryStream(Encoding.UTF8.GetBytes(textBox1.Text)))
{
SvgDocument svgDoc = SvgDocument.Open<SvgDocument>(s, null);
RenderSvg(svgDoc);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment