• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
validation class and windows-1250

#1
[eluser]smith[/eluser]
I am using windows-1250 but this may happen to other code pages too:

$rules['field'] = "trim|required|alpha_numeric|xss_clean";

If field contains native ASCII characters it is ok but if field contains windows-1250 specific charcters validation will be FALSE:

native ASCII: "some text with only alphanumeric chars" = this is ok
specific windows-1250: "some text with extended ASCII chars đđšžćčžđšđš" - this will result with validation FALSE

So, i have to use "trim|required|xss_clean" which is partialy functional for anything except english.

Or am i missing something? I am not sure how this happened because i was using same rules to insert data and all of the sudden it doesn't work....


Messages In This Thread
validation class and windows-1250 - by El Forum - 08-02-2007, 06:15 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.