File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Escaping - é vs \uxxxx Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Escaping - &eacute vs \uxxxx" Watch "Escaping - &eacute vs \uxxxx" New topic

Escaping - &eacute vs \uxxxx

Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Hi there

I'm busy working on a translation software for work. We are taking php files, stripping them for the pieces to translate, translating them and building the php files again. All programatically using java.

Now, I see in some of the php files, the escape chars are noted as é and sometimes they are noted in unicode notation \uxxxx. But only when they are in unicode notation are they displayed properly.

What is the reason for this? Am I going to have to replace the &'s for \u's to start and then convert them again when finished?

Many kind regards,
I agree. Here's the link:
subject: Escaping - &eacute vs \uxxxx
It's not a secret anymore!