Link to home
Start Free TrialLog in
Avatar of Suda_RamanaReddy
Suda_RamanaReddy

asked on

how to read the string as it is in Java

How can I read a string as it is..?

The actual String is something like this " This is my name <check for break> and I want to test for <check for break>".  but when I'm trying to read this string I can see all special characters are using escape code sequences (ex: < is looking like &lt; and > looks like &gt;) and creating little ptoblem while I want read the string.

Is there any method which makes me read the string as it is Java , though it has escape code sequences...?

Thanks


ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
below are the list of encoded chars and its appropriate decoding,

&amp; & 
&apos; '
&quot; " 
&lt; < 
&gt; > 
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Suda_RamanaReddy
Suda_RamanaReddy

ASKER

Hi.... Thanks... We changed the way we input the data...
Can you delete this question now... I think it's better we have the option to delete the question...!
that doesn't make the answers invalid :)
Forced accept.

Computer101
EE Admin