statement->bindParamWithDriverOptions( $param, $value, $type, PDO::SQLSRV_ENCODING_BINARY, ); break; case ParameterType::ASCII: $this->statement->bindParamWithDriverOptions( $param, $value, ParameterType::STRING, PDO::SQLSRV_ENCODING_SYSTEM, ); break; default: $this->statement->bindValue($param, $value, $type); } } }