Hello,
I posted this two days back.. But I did not get a single reply. Please
someone give me the solution.
I am involved in a project on globalizing a few asp pages of a web site.
The web site is to be accessed by the Japanese people using a Japanese OS. I
am facing the following problems.
The asp pages involve a few edit controls on which the following validation
is to be made.
In these edit boxes , there is a limitation on the number of bytes that the
string entered can contain. Both Japanese and English characters can be
entered but the number of bytes should not cross a fixed number. [Japanese
characters may be of one or two bytes]. For this validation to happen, I
need to find the number of bytes in the string.
Suggest me a built-in function both in VBScript and JavaScript to do this.
VBScript has a function LenB which gives the number of bytes but still it
considers even English characters as 2 bytes since it stores all characters
as UniCode. I want the one for DBCS where all English characters are single
byte.
Thanks and regards,
Karthik