Welcome Guest, Not a member yet? Register   Sign In
Multibyte characters validation problem
#1

[eluser]fensen[/eluser]
Hi,

I'm developing a website for Japan.

I'm having difficulties with the Validation Class handling multibyte characters. I have a 100-character text field:

Code:
$rules['text'] = "max_length[100]";

When I input single byte text (English alphabet characters) the 100 limit is correctly validated.

But when I input Japanese text, I can only input 33 characters. If I input 34 characters I get the error message saying that the limit is 100 chars.

Sometimes I need to input English and Japanese text together.

Any ideas?

Thanks in advance


Messages In This Thread
Multibyte characters validation problem - by El Forum - 03-09-2008, 05:53 AM
Multibyte characters validation problem - by El Forum - 03-09-2008, 06:25 AM
Multibyte characters validation problem - by El Forum - 03-10-2008, 05:01 AM
Multibyte characters validation problem - by El Forum - 03-10-2008, 05:18 AM
Multibyte characters validation problem - by El Forum - 03-10-2008, 11:42 AM
Multibyte characters validation problem - by El Forum - 04-16-2008, 03:22 PM
Multibyte characters validation problem - by El Forum - 06-27-2012, 11:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB