?
Solved

Just a quicky ! ooh err...

Posted on 2001-07-06
7
Medium Priority
?
204 Views
Last Modified: 2010-04-16
Im calling a finction.. that does stuff.. not written by myself.

Im outputting its resultant string to the browser.. (goes through a few steps to get there, but this is not important)

anyway if i use the string <br /> .. it gets encoded and is output as &lt;br /&gt;

Q: Why are my bracketty things getting encoded, and how do I stop them !

~~~~~~~~~~~~~~~~~~~~~~~~~~~
The secret lemonade drinker
0
Comment
Question by:mehdi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 9

Expert Comment

by:Ovi
ID: 6258915
Perhaps you meen </br> and not <br/>. It gets this output because is not a valid html tag (is interpreted in this maneer by the browser) and the parser will replace "<" with &lt (lower than) and ">" with &gt (greather than). Your html page will display <br/> in the end and not the whished carriage return.
0
 
LVL 1

Author Comment

by:mehdi
ID: 6258958
nope.  <br /> is not incorrect..  It is in fact the correct form [the XML complient version]

In anycase, i tried using <br> also, the same thing happened.
0
 
LVL 1

Author Comment

by:mehdi
ID: 6258962
So, How do I unencode a URL encoded String ? grrr!!
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Accepted Solution

by:
Ovi earned 120 total points
ID: 6258970
java.net.URLEncoder.encode(your string goes here);
0
 
LVL 9

Expert Comment

by:Ovi
ID: 6258975
java.net.URLDecoder.decode(your string goes here); for decoding.
Both are static methods.
0
 
LVL 2

Expert Comment

by:ia_ia_ia_1
ID: 6483205
>> (goes through a few steps to get there, but this
is not important)

I think it's quite important. When does the change occur?
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 9017451
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


[points to Ovi]


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month9 days, 12 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question