on 12-30-2005 12:48 AM
Hi,
I have a BSP application where I am trying to output a company's name. Some of the companies have an "&" in the name. When the output to the screen rendered I get somthing like:
Sopranos & Co
rather then the expected ...
Sopranos & Co
I am using a <htmlb:inputField /> BSP Element for the output.
I tried setting the encode parameter to "FALSE", but made no difference.
Any assistance is appreciated.
instead of passing company name as
Sopranos & Co
pass it like below with escape character for &
<b>Sopranos & Co</b>
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
thanks for your reply, I tried this, however passing in:
Sopranos & Co
will just give me ...
Sopranos &amp; Co
One thing I failed to mention, the Name of the company is stored in an XML file and retrieved from the XML file (I am dealing with a Web Request). Just now I went and had a look at the XML file in question, the name Sopranos & Co appears there as well.
So I may have to rephrase the question. Is there any way of stopping the conversion of the & into & when writing the data to an XML file.
>One thing I failed to mention, the Name of the company is stored in an XML file and retrieved from the XML file
It sounds like you are actually just reading the raw XML file and pulling out the data that you want. This can be dangerous as you have seen because many characters can be Encoded. It is best to use either CALL TRANSFORMATION or use the CL_IXML libraries to parse the XML. Encoded characters should automatically be translated for you in either of these cases.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.