Skip to content

Commit

Permalink
Merge pull request #47 from zys529/master
Browse files Browse the repository at this point in the history
Update StringHelper.cs
  • Loading branch information
jhabjan committed Apr 19, 2018
2 parents 280268c + 647ccc7 commit 49a233f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ghostscript.NET/Helpers/StringHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class StringHelper

public static string ToUtf8String(string value)
{
return Encoding.Default.GetString(Encoding.UTF8.GetBytes(value));
return Encoding.UTF8.GetString(Encoding.Convert(Encoding.Default, Encoding.UTF8, Encoding.Default.GetBytes(value)));
}

#endregion
Expand Down

0 comments on commit 49a233f

Please sign in to comment.