Skip to content

Commit

Permalink
Merge pull request #40 from Crayjin/master
Browse files Browse the repository at this point in the history
Fixes German Umlauts in Path issue
  • Loading branch information
jhabjan committed Dec 18, 2017
2 parents 6c74b1e + 2d184de commit 280268c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Ghostscript.NET/Helpers/StringHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

using System;
using System.Text;

namespace Ghostscript.NET
Expand All @@ -35,8 +34,7 @@ public class StringHelper

public static string ToUtf8String(string value)
{
byte[] bytes = System.Text.Encoding.Default.GetBytes(value);
return System.Text.Encoding.UTF8.GetString(bytes);
return Encoding.Default.GetString(Encoding.UTF8.GetBytes(value));
}

#endregion
Expand Down

0 comments on commit 280268c

Please sign in to comment.