[Solar-talk] validation - unicode?

Paul M Jones pmjones at solarphp.com
Sat Jul 22 09:47:28 PDT 2006


On Jul 22, 2006, at 11:43 AM, Rodrigo Moraes wrote:

> On 7/22/06, Rodrigo Moraes wrote:
>> Hm, this doesn't seem related to charset (if encoded to uft-8, the  
>> big
>> minus sign would just disappear). Couldn't you use a regexp or some
>> replaces in the validation to allow only the characters you expect?
>
> My bad... yes, it seems related. I've done a quick test and when I had
> no charset defined in the page head, characters were submitted as they
> are posted. When I set the charset to ISO-8859-1 or UTF-8, the big
> minus sign was then converted to a "simple" minus sign.

Can you post an example?



--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list