Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hex code to ASCII

995455Apr 2 2013 — edited Apr 2 2013
Hey all,

i'm programming a web application to take in an ASCII Art from a text field in a web page and store it in an sql database so that the application displays all
the arts in another web page.

however whenever someone types in: {
it gets converted to %7b...

thats not a big deal but when the other web page displays the collection of ascii arts it displays %7b instead of {.
so all i wanna do is to convert the %7b to { before displaying it..

kindly help..

i wanna make a procedure which takes in something like: Hello%7bJava%7b!
and converts it to: Hello{Java}!

Ps. it should work for all hex codes and not only for %7b

please not: i want to convert only hex code to ascii and not disturb any existing ascii..

i.e in Hello%7bJava%7b!
hello and java must be unaffected while %7b should be converted to {

in other words i wanna convert only hex to ascii and not affect ascii

Edited by: 992452 on Apr 1, 2013 11:33 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2013
Added on Apr 2 2013
1 comment
321 views