Article View: borland.public.jbuilder.java.language
Article #8151Re: Check for *all* alphanumeric characters...
From: Torsten Welches
Date: Fri, 06 Apr 2001 11:27
Date: Fri, 06 Apr 2001 11:27
30 lines
1999 bytes
1999 bytes
Valentino, <afaik> the codes are fixed and don't depend on the locale. '&' will always be Unicode 0x26. </afaik> Why do you think that would depend on the Locale? Torsten "Valentino Kyriakides" <vkyr@nospamlavielle.com> wrote: >Torsten, is this character set dependend on the used locale? > >I mean, if I need now only specific ranges from such an sort of extended >ASCII character set, so that I allow only specific characters ranges from >the whole [0,256], can I be shure that 0x26 till 0x2F always really include >the charcters "& � ( ) * + , - . /"? > >We use the DE local and now we have for some sort of server side input >validition (shop input fields) to allow only certain alphanumeric chars, as: > > Numeric: [0x30, 0x39] > Range1: [0x26, 0x2F] > Range2: [0x41, 0x5A] (A-Z) > Range3: [0x61, 0x7A] (a-z) > ... > ... > >Would these always be unique independently of the the local, I don't think >so? And what's if the local doesn't change and is always unique?
Technical Details
Message-ID:
<3acda83e$1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!dnewsReferences:
<3acb4854_2@dnews> <3acc873c$1_1@dnews> <3acd9c04_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,6f88753f3998c69d X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-06 04:41:15 PST From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Subject: Re: Check for *all* alphanumeric characters... Newsgroups: borland.public.jbuilder.java.language X-User-Info: 193.158.55.74 193.158.55.74 References: <3acb4854_2@dnews> <3acc873c$1_1@dnews> <3acd9c04_1@dnews> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3acda83e$1_1@dnews> Date: 6 Apr 2001 04:27:58 -0700 X-Trace: dnews 986556478 207.105.83.65 (6 Apr 2001 04:27:58 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews