jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: Qusetion
Date Mon, 21 Jan 2002 19:35:11 GMT

In message <009801c1a257$9dee9e40$20c8a8c0@eurolink.stpn.soft.net>, "Hardeep Si
ngh" writes:
>But, how can it get a value larger than 255? I mean, even if there is a
>value greater than one byte, it should be interpreted as two consecutive
>characters, not just one. The problem at hand requires the speed. Hence,
>what can I do to make it either just ignore unicode files or ignore the
>higher bit (this shud work correctly for UTF 8).

If you are reading your data from a file or other I/O source, set the
character encoding for byte-to-char-translation to US-ASCII or
ISO-LATIN-1 or some other encoding that will limit the values to <= 255.
You can do this with an InputStreamReader.

daniel



--
To unsubscribe, e-mail:   <mailto:oro-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:oro-dev-help@jakarta.apache.org>


Mime
View raw message