59 $isNeedRecode = !empty($vars[
'CHARSET']) && $vars[
'CHARSET'] != ToUpper(SITE_CHARSET);
62 foreach($vars as $name => $value)
64 if(!property_exists($this, $name))
69 foreach($value as $error)
72 $error[
'message'] = Encoding::convertEncoding($error[
'message'], $vars[
'CHARSET'], SITE_CHARSET);
74 $this->addError(
new Error($error[
'message'], $error[
'code']));
80 $value = Encoding::convertEncoding($value, $vars[
'CHARSET'], SITE_CHARSET);
82 $this->$name = $value;