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


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

Re: unicode

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date Mon, 12 Sep 2011 17:29:40 -0400
From Arne Vajhøj <arne@vajhoej.dk>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: unicode
References <6c991195-ab57-417c-92e0-6d5ee1c451dc@dq7g2000vbb.googlegroups.com>
In-Reply-To <6c991195-ab57-417c-92e0-6d5ee1c451dc@dq7g2000vbb.googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Lines 15
Message-ID <4e6e79c7$0$309$14726298@news.sunsite.dk> (permalink)
Organization SunSITE.dk - Supporting Open source
NNTP-Posting-Host 72.192.23.141
X-Trace news.sunsite.dk DXC=Vcl8P]cBc;aMMDg2]64EMfYSB=nbEKnkk@IQ>cfbXVefJPe3\kP5EUaKBm9cfh9BSdM2;kT<[:>[aEi[ePN[DV?l2Uf?kicYe?`
X-Complaints-To staff@sunsite.dk
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7917

Show key headers only | View raw


On 9/12/2011 3:24 PM, bob wrote:
> Why does Java complain when I do this?
>
> 	html = html.replaceAll("\u000A", " ");

Because a line feed is not valid in the source code
there.

The unicode escapes are processed by javac when
reading the source, so the error is not specific to
replaceAll.

Arne

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


Thread

unicode bob <bob@coolgroups.com> - 2011-09-12 12:24 -0700
  Re: unicode Knute Johnson <nospam@knutejohnson.com> - 2011-09-12 14:04 -0700
  Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 14:08 -0700
    Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 17:31 -0400
      Re: unicode markspace <-@.> - 2011-09-12 16:33 -0700
        Re: unicode Lew <lewbloch@gmail.com> - 2011-09-12 17:46 -0700
          Re: unicode markspace <-@.> - 2011-09-12 20:16 -0700
          Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:05 -0700
            Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:10 -0700
            Re: unicode Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-09-13 07:18 +0000
        Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 20:57 -0400
          Re: unicode markspace <-@.> - 2011-09-12 19:51 -0700
            Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-13 20:17 -0400
              Re: unicode markspace <-@.> - 2011-09-13 19:32 -0700
                Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-14 11:49 -0700
          Re: unicode Paul Cager <paul.cager@googlemail.com> - 2011-09-13 04:05 -0700
        Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:02 -0700
          Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-13 20:30 -0400
  Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 17:29 -0400
    Re: unicode Lew <lewbloch@gmail.com> - 2011-09-12 15:48 -0700

csiph-web