L
Lew
markspace said:David said:Cute. But presupposing that the OP isn't the idiot some people seem to
have assumed, I suspect he meant something more like
String line = someBufferedFile.readline();
... change all \u escapes into unicode in "line" ... [1]
That was not obvious to me, hence my question as to what he did mean.
Maybe. But your code above is obvious, imo. Either Knute had a brain
fart and forgot about \\ to escape a slash, or he ran into some other
problem.
My point was that there's a very simple pre-compiler for Java. It
translates all \u-escapes into characters before the compiler proper
sees it. There's no difference to the Java compiler between "fed" and
"\u0066\u0065\u0064". It literally can't tell the difference.
That was also the point of my SSCCE.