diff options
author | ctrlaltca <ctrlaltca@gmail.com> | 2014-07-19 17:18:36 +0200 |
---|---|---|
committer | ctrlaltca <ctrlaltca@gmail.com> | 2014-07-19 17:18:36 +0200 |
commit | 9c2824b1b752f26cc2bea0667a7ee2c7bbf26db0 (patch) | |
tree | 7ae661d70320fe29649929bf793cc7e96547e38a /tests/FunctionalTests/issues/protected/pages/Issue524.php | |
parent | 071f22c5c038c962823af003a28663d0d2734a16 (diff) | |
parent | 8e07d0781150206fae722d9b9dcbdafd727665f6 (diff) |
Merge pull request #525 from david0/issue-524
Convert encoding of all values inside an array before json_serialize
Diffstat (limited to 'tests/FunctionalTests/issues/protected/pages/Issue524.php')
-rwxr-xr-x | tests/FunctionalTests/issues/protected/pages/Issue524.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/FunctionalTests/issues/protected/pages/Issue524.php b/tests/FunctionalTests/issues/protected/pages/Issue524.php new file mode 100755 index 00000000..851ff45a --- /dev/null +++ b/tests/FunctionalTests/issues/protected/pages/Issue524.php @@ -0,0 +1,20 @@ +<?php + +Prado::using('System.Web.UI.ActiveControls.*'); + +class Issue524 extends TPage +{ + + public function __construct() { + Prado::getApplication()->getGlobalization()->setCharset('ISO-8859-1'); + parent::__construct(); + } + + public function validateText($sender, $param) + { + $param->IsValid = false; + $iso8859text=iconv('utf-8', 'iso-8859-1', 'fünf'); + $this->Validator->ErrorMessage = $iso8859text; + } + +} |