| @@ 214-235 (lines=22) @@ | ||
| 211 | * | |
| 212 | * @return void | |
| 213 | */ | |
| 214 | private function __argumentDecodeUTF8_mb_convert_encoding(&$mArg) | |
| 215 |     { | |
| 216 | if(is_array($mArg)) | |
| 217 |         { | |
| 218 | foreach($mArg as $sKey => $xArg) | |
| 219 |             { | |
| 220 | $sNewKey = $sKey; | |
| 221 | $this->__argumentDecodeUTF8_mb_convert_encoding($sNewKey); | |
| 222 | if($sNewKey != $sKey) | |
| 223 |                 { | |
| 224 | $mArg[$sNewKey] = $xArg; | |
| 225 | unset($mArg[$sKey]); | |
| 226 | $sKey = $sNewKey; | |
| 227 | } | |
| 228 | $this->__argumentDecodeUTF8_mb_convert_encoding($xArg); | |
| 229 | } | |
| 230 | } | |
| 231 | else if(is_string($mArg)) | |
| 232 |         { | |
| 233 |             $mArg = mb_convert_encoding($mArg, $this->getOption('core.encoding'), "UTF-8"); | |
| 234 | } | |
| 235 | } | |
| 236 | ||
| 237 | /** | |
| 238 | * Decode an Jaxon request argument from UTF8 | |
| @@ 244-267 (lines=24) @@ | ||
| 241 | * | |
| 242 | * @return void | |
| 243 | */ | |
| 244 | private function __argumentDecodeUTF8_utf8_decode(&$mArg) | |
| 245 |     { | |
| 246 | if(is_array($mArg)) | |
| 247 |         { | |
| 248 | foreach($mArg as $sKey => $xArg) | |
| 249 |             { | |
| 250 | $sNewKey = $sKey; | |
| 251 | $this->__argumentDecodeUTF8_utf8_decode($sNewKey); | |
| 252 | ||
| 253 | if($sNewKey != $sKey) | |
| 254 |                 { | |
| 255 | $mArg[$sNewKey] = $xArg; | |
| 256 | unset($mArg[$sKey]); | |
| 257 | $sKey = $sNewKey; | |
| 258 | } | |
| 259 | ||
| 260 | $this->__argumentDecodeUTF8_utf8_decode($xArg); | |
| 261 | } | |
| 262 | } | |
| 263 | else if(is_string($mArg)) | |
| 264 |         { | |
| 265 | $mArg = utf8_decode($mArg); | |
| 266 | } | |
| 267 | } | |
| 268 | ||
| 269 | /** | |
| 270 | * Return the method that was used to send the arguments from the client | |