You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
451 B
20 lines
451 B
2 years ago
|
using System;
|
||
|
|
||
|
namespace Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Tyrp;
|
||
|
|
||
|
public static class DataChangeHelper
|
||
|
{
|
||
|
public static string Cp850ToGBK(string str)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
var charsetGBK = System.Text.Encoding.GetEncoding("gbk").GetString(System.Text.Encoding.GetEncoding("iso-8859-1").GetBytes(str));
|
||
|
return charsetGBK;
|
||
|
}
|
||
|
catch (Exception)
|
||
|
{
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
}
|