BillyRayPreachersSon
Programmer
I'm creating a sign-up form for the Japanese version of a site, and there are two 'name' fields, one for Kanji, and one for Katakana. Both are mandatory. The only restriction is that both must only contain 2-byte characters.
My knowledge of Japanese is next-to-nothing, and after staring at pages on Wikipedia all day, my head hurts , although I've managed to find out that there are single-byte Japanese characters (previously, I'd assumed all Japanese characters would be 2-byte).
Does anyone know if it's possible to detect the presence of 1-byte Japanese characters in a standard text-input field using a regular expression (to make it easier to plug into our validation routine), and if not, any method that I might use?
Many thanks in advance,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
My knowledge of Japanese is next-to-nothing, and after staring at pages on Wikipedia all day, my head hurts , although I've managed to find out that there are single-byte Japanese characters (previously, I'd assumed all Japanese characters would be 2-byte).
Does anyone know if it's possible to detect the presence of 1-byte Japanese characters in a standard text-input field using a regular expression (to make it easier to plug into our validation routine), and if not, any method that I might use?
Many thanks in advance,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info: