ConvertCP936ToISO() public static method

public static ConvertCP936ToISO ( string cp936Str ) : string
cp936Str string
return string
Exemplo n.º 1
0
 public void ProcessInputCommand(IDbCommand command)
 {
     if (command == null)
     {
         return;
     }
     command.CommandText = EncodIngHelper.ConvertCP936ToISO(command.CommandText);
     foreach (IDbDataParameter parameter in command.Parameters)
     {
         if (parameter.Value != System.DBNull.Value && parameter.Value is string && (parameter.Direction == ParameterDirection.Input || parameter.Direction == ParameterDirection.InputOutput))
         {
             parameter.Value = EncodIngHelper.ConvertCP936ToISO(parameter.Value as string);
         }
     }
 }