Thursday, September 12, 2002 04:56 AM
I have got an html page which has a textarea. Now I need to validate the no of bytes entered in this textarea by the user.
Initially, I was validating this using the length property.
This works fine when normal english characters are entered.
The problem is coming when I am trying to enter some japanese characters. Since japanese characters are multi-byte characters, I am getting the wrong value of no of bytes from the length property.
This is a sample code I am using right now.
Thursday, September 12, 2002 05:33 AM