J
Jonck
Hi,
I need to send strings to someone else's servlet. However, these strings
may only contain ISO-8859-1 characters, therefore I need to check
whether the user of my app has not tried to enter any non-ISO-8859-1
characters before I send his/her input on to the servlet. Does anyone
know of an easy way to check whether a string contains only ISO-8859-1
characters?
The only solution I could think of was to use a regular expression where
I enter every ISO-8859-1 character in the matching sequence, but this is
rather clunky and prone to errors.
Thanks for any help, Jonck
I need to send strings to someone else's servlet. However, these strings
may only contain ISO-8859-1 characters, therefore I need to check
whether the user of my app has not tried to enter any non-ISO-8859-1
characters before I send his/her input on to the servlet. Does anyone
know of an easy way to check whether a string contains only ISO-8859-1
characters?
The only solution I could think of was to use a regular expression where
I enter every ISO-8859-1 character in the matching sequence, but this is
rather clunky and prone to errors.
Thanks for any help, Jonck