summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/issues/protected/pages/Issue524.php
blob: 851ff45a0f5d85a4368530d06ecd731cedf49c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
  }

}