| @@ -216,13 +216,13 @@ | ||
| 216 | 216 | $app->close(); |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | if (empty($pstate_3_code)) { |
| 220 | - $pstate_3_code = function_exists('mb_substr') ? mb_substr($pstate_name, 0, 3) : substr($pstate_name, 0, 3); | |
| 220 | + $pstate_3_code = function_exists('mb_substr') ? mb_substr($pstate_name, 0, 3, 'UTF-8') : substr($pstate_name, 0, 3); | |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | if (empty($pstate_2_code)) { |
| 224 | - $pstate_2_code = function_exists('mb_substr') ? mb_substr($pstate_name, 0, 2) : substr($pstate_name, 0, 2); | |
| 224 | + $pstate_2_code = function_exists('mb_substr') ? mb_substr($pstate_name, 0, 2, 'UTF-8') : substr($pstate_name, 0, 2); | |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | $set_state = new stdClass; |
| 228 | 228 | $set_state->id = $pid; |