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


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

Re: unicode

From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: unicode
Date 2011-09-12 15:48 -0700
Organization http://groups.google.com
Message-ID <1adb9fd1-0379-4223-9073-75697bfbcd5f@glegroupsg2000goo.googlegroups.com> (permalink)
References <6c991195-ab57-417c-92e0-6d5ee1c451dc@dq7g2000vbb.googlegroups.com> <4e6e79c7$0$309$14726298@news.sunsite.dk>

Show all headers | View raw


Arne Vajhøj wrote:
> 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.

In this case, bob, the answer was obvious, but in general you should always be specific with your questions.  "Why does Java complain?" doesn't say much about the error, i.e., the text of the message, whether it's a compile-time or run-time error, the specific part of the code that had a problem.  Just as when you are diagnosing the error yourself, people you ask for help need the details.

That is, if you are sincere about wanting help.

But again, this particular question was simple enough that you got away with it.

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious 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