Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #7841

Re: ascii char 26

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Joshua Cranmer <Pidgeot18@verizon.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: ascii char 26
Date Sun, 11 Sep 2011 18:37:45 -0500
Organization A noiseless patient Spider
Lines 14
Message-ID <j4jgpa$l2l$1@dont-email.me> (permalink)
References <16f8836c-27b9-483b-a71f-61d7d6cfd188@i2g2000yqm.googlegroups.com> <slrnj6qger.r1i.bcd@microbel.pvv.ntnu.no>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Sun, 11 Sep 2011 23:38:19 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="WpcHJSul77m+zlbR9GVqkA"; logging-data="21589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZOTIpj3XW/CsCzWDyvBAsjV1U+mGaVtA="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
In-Reply-To <slrnj6qger.r1i.bcd@microbel.pvv.ntnu.no>
Cancel-Lock sha1:8FFquiD8YPrlWj3p96aQ4Z/1BOk=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7841

Show key headers only | View raw


On 9/11/2011 6:18 PM, Bent C Dalager wrote:
> One would tend to think there ought to be a library function somewhere
> to convert a unicode string to ASCII-supported variants of its various
> characters where possible, that you should be using instead. I don't
> know if such a function is easily available.

This generally falls under the umbrella of Unicode normalization, which 
can resolve, e.g., Å the Angstrom symbol and Å the Swedish letter to the 
same representation (may require compatibility normalization). You can 
do this in Java using the java.text.Normalizer class.

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ascii char 26 bob <bob@coolgroups.com> - 2011-09-11 14:33 -0700
  Re: ascii char 26 Arne Vajhøj <arne@vajhoej.dk> - 2011-09-11 17:48 -0400
  Re: ascii char 26 Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-09-11 16:52 -0500
    Re: ascii char 26 Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-09-11 18:28 -0400
    Re: ascii char 26 bob <bob@coolgroups.com> - 2011-09-11 19:12 -0700
      Re: ascii char 26 Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-09-11 21:25 -0500
        Re: ascii char 26 bob <bob@coolgroups.com> - 2011-09-12 01:30 -0700
  Re: ascii char 26 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-11 15:25 -0700
  Re: ascii char 26 Bent C Dalager <bcd@pvv.ntnu.no> - 2011-09-11 23:18 +0000
    Re: ascii char 26 Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-09-11 18:37 -0500
    Re: ascii char 26 Retahiv Oopsiscame <roopsisc@gmail.com> - 2011-09-11 16:53 -0700
      Re: ascii char 26 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-14 11:55 -0700

csiph-web