Author |
Topic |
|
seahorse
Senior Member
USA
1075 Posts |
Posted - 18 July 2002 : 22:30:11
|
Hi Folks,
I have a question for the developers out there. Does anyone know if it is possible to create a double byte validation script with VB or javascript?
What I'd like is a script which can check to see if user input is single or double byte and return a message to the user if the incorrect byte format is selected. Has anyone done this before?
Ken
=============== Hey! Put that down!< |
|
n/a
deleted
593 Posts |
Posted - 31 July 2002 : 21:49:56
|
Hi Seahorse,
Am no developer, and not qualified to respond to this one.
However, very curious why you want to do this.
Assuming that this is with Snitz Forum? Using V3.3.05 English?
Even so, I would assume that most visitors/people visit to a straight English site/forum will assume, especially in Japan, that it won't take doublebyte correctly, to start with... and most likely, they will set their input method to "direct input" in Japanese or Chinese input methods they use if they want to post any messages...., which usually is ISO 8851-1 Englisu US..... No?
Also, you can post your topics/contents in Shift-JIS, etc. in Snitz Forum 2000, for example, but won't show up correctly unless a viewer's browser is set to Shift-JIS encoding for those Japanese texts. I believe there is a way to set a language detection checking meta tag or header info in html for charsets/lcid/codepage and to get a respective reply... in V4.bx, for example, not exactly the same, will prompt a Japanese autoresponse for registration if an access and registration is done in Japanese defaulted forum/page... And assume this is also the case - dynamic language specific response depending on which language is selected...
Anyway, was just curious about this.
< |
|
|
seahorse
Senior Member
USA
1075 Posts |
Posted - 02 August 2002 : 05:03:53
|
Hi LeoRat,
The script would be for certain fields in input forms of a Japanese only site. I'd like phone numbers, fax numbers, email addresses, etc in single byte format vs double byte format.
Ken
=============== Hey! Put that down!< |
|
|
n/a
deleted
593 Posts |
Posted - 02 August 2002 : 07:23:02
|
Hi Seahorse,
If your forum/web is all Japanese - assuming then it is in Shift-JIS encoding....well, I still have to say am still bit puzzled....
As far as I can see - most common practice - is to indicate in the form to enter "hankaku eigo" or "half-width alphanumeric" (ala MS MIME) into the fields for telephone/fax numbers, email address etc (Singlebyte English) while names, addresses, etc. often are in doublebyte Japanese (Shift-JIS). I may be wrong but if your website and forum template encoding is set to Shift-JIS, doublebyte enviornment, then, you know that it is not a problem in handling singlebyte charsets. What you are saying to avoid doublebyte charsets used for those (which in Japanese input methods, called "Zenkaku" or "Full Size Alphanumeric" ... so it appears that most typical convention is to put (Please use signle byte chars) next to a box for those input informations.....It seems this standard/typical approach is much more simple and solve the problem....assuming that you have a form that a visitor/member to fill in. I assume that you can put a messaage as such in a form page or if you have a guildeline or something in explaining how to register, etc. then you can mention those required to be put in with a singlebyte aphanumeric number ... (You can randomly check with some of the leading corporate web sites thre and you see this is typically the case...)
BTW, I know it works with Shift-JIS Japanese defaulted Snitz Forum V4x (meaning, a single language enviornment with Shift-JIS Japanese, no English)...There is a recent adoptation of V4x in Japan for Sun ONE ASP User Group who deployed Lang1041ShiftJIS and using it, and don't believe he has this problem either. (Link at my demo site - i2asia: http://www26.brinkster.com/i2asia/forum/ - if you like to take a look at this Shift-JIS enviornment....
Taku
< |
|
|
seahorse
Senior Member
USA
1075 Posts |
Posted - 09 August 2002 : 02:11:16
|
Hi LeoRat,
I have a very low opinion of end user's ability to follow instructions. I know that it is common to place text next to the form field stating that single byte numerics are required. I already do this for my web sites, but there are always people who cannot follow instructions.
Ken
=============== < |
|
|
n/a
deleted
593 Posts |
Posted - 09 August 2002 : 03:12:22
|
Am not sure about a technical solution to that. There is always some who will not exactly follow - intentionally or unintentionally - a required process... beside typos like I make all the time... My thoughts on possible technical approach is totally missing here..and am not sure whether it can be elegantly done..but again am not well equipped in thinking in programming language...
But, you can always add some flashy stuff pop up if they make mistakes or illegal input by every second or every time input a char is made....so that they will know something is not done right... Believe your inquiry needs to be re-directed to ASP Masters here at Snitz....Hope you will find some good solution to your problem though.
Taku< |
|
|
n/a
deleted
593 Posts |
Posted - 10 August 2002 : 01:40:18
|
BTW, on your English environment, do you have a website/forum deployed in Japanese (Shift-JIS) as a default? What email component are you using? Do you have any problem when any email responses sent to a member when he/she register and when you make changes and change notices sent?
< |
Taku
|
|
|
seahorse
Senior Member
USA
1075 Posts |
Posted - 11 August 2002 : 21:41:45
|
My company web sites are hosted in two locations. One is at the company global web data center in Sweden (English Win2k) and the others are hosted at the company data center in Japan Japanese Win2k and Linux). The web sites in both locations are Shift JIS.
Legally we can only target the Japanese audience so providing language friendly support to other foreign languages is difficult.
My personal web site isn't up yet. I'm still waiting for 3.4 and working on the photo album code .
< |
Ken =============== Worldwide Partner Group Microsoft |
Edited by - seahorse on 11 August 2002 21:42:59 |
|
|
n/a
deleted
593 Posts |
Posted - 13 August 2002 : 00:55:05
|
My previous question about your environment is because I noticed a little problem in email notice that I receive from my own demo site (unicode, multilingual) to my email (XP/Outlook Express) client.. which shows up corrupted in Japanese....and suspect this is something to do with RoadRunner account handling unicode chars....
Hope everything goes well with you.< |
Taku
|
|
|
seahorse
Senior Member
USA
1075 Posts |
Posted - 14 August 2002 : 22:14:16
|
Hi LeoRat,
We use ASPMail. I don't like it we're having a lot of encoding related problems with it. It's really spotty in someplaces.
For example, the body of the emails it sends display fine in Japanese, but it won't send the email title in Japanese becuase it converts it to single byte English format. It's not just Japanese that seems to have this problem. Some Swedish characters don't seem to work well either. < |
Ken =============== Worldwide Partner Group Microsoft |
|
|
n/a
deleted
593 Posts |
Posted - 14 August 2002 : 23:26:09
|
That's not really nothing new to email enviornments...Outlook/Outlook Express behaves the same way.... See this post for fixing it: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=29353&SearchTerms=Greek,Outlook,Express
My problem is different issue, a message itself besides email "subject" or "sender" (address book) got screwed up....noticed this when I received a notice from my forum when I moved the topic...it's came back with corrupted encoding mixed with English/Japanese and other ASCII chars...and it's not really singlebyte or doublebyte issue but email component not handling encoding properly...and somehow "unicode" got messed up in the middle...Of course, this doesn't happen when you are accessing Forum with English_US selected...I can think of couple of potential problems: (a) Brinkster ASP server side in handling unicode/multiplingal email, (b) Email component installed (using RoadRunner as SMTP....which is pure native English...), and email client (Outlook Express with RoadRunner)....these are not most likely well synchronized in handling unicode multibyte charsets....
Email component in handling multibyte/doublebyte envionrment is a beast, worse than web contents...
I am signing off from multibyte issue. < |
Taku
|
|
|
seahorse
Senior Member
USA
1075 Posts |
Posted - 15 August 2002 : 22:22:01
|
quote: Originally posted by LeoRat Email component in handling multibyte/doublebyte envionrment is a beast, worse than web contents...
I can't argue with you there. It's a mess. We never did get all of the encoding issues solved with email.
Bye
< |
Ken =============== Worldwide Partner Group Microsoft |
|
|
Deleted
deleted
4116 Posts |
Posted - 16 August 2002 : 12:49:37
|
Well, I know that only few of e-mail components have this issue solved. If you host your site in JP, probably they will have correct components for Japanese... < |
Stop the WAR! |
|
|
|
Topic |
|