Home | Advertising Info83 USERS CURRENTLY ONLINE   
   Site Search Contact Us Monday, July 28, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Doubt in Internationalizing ASP pages - ByteCount.
From: Karthik Srinivasan
Date: 3/3/2001 6:24:44 AM
IP: 202.177.128.86



 

Hello,
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


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com