Shankar_24684 Posted May 21, 2007 Share Posted May 21, 2007 <?xml version="1.0" encoding="UTF-8"?>i have to display this line with yellow background in my report . Can anyone please help out in doing the same? Thanks in advance,Shankar.S Link to comment Share on other sites More sharing options...
svenn Posted May 22, 2007 Share Posted May 22, 2007 Look up Unicode. Use the Unicode value for < and >. Link to comment Share on other sites More sharing options...
redwine Posted May 24, 2007 Share Posted May 24, 2007 Shankar, you can try using the following html entity names for the "less than" and "greater than" symbols: < ... type <> ... type > for other special symbols see this url:http://www.w3schools.com/html/html_entities.asp let us know how it goes edwin Link to comment Share on other sites More sharing options...
thiego Posted June 5, 2007 Share Posted June 5, 2007 It doesnt work if you mix "<" or ">" with another html tag (eg <font size =3> </font>)I had the same error.. In my case, i was trying to use < or > with bold. "<" and ">" are interpreted as a html tag creating the following error:"ERROR [sTDERR] [Fatal Error] :3:2: The content of elements must consist of well-formed character data or markup." Link to comment Share on other sites More sharing options...
thiego Posted June 5, 2007 Share Posted June 5, 2007 and i've tried to use the unicode.. it doenst work too! the same error.. Post edited by: thiego, at: 2007/06/05 12:49Post edited by: thiego, at: 2007/06/05 12:50 Link to comment Share on other sites More sharing options...
redwine Posted June 5, 2007 Share Posted June 5, 2007 thiego, you can't use the GREATER THAN and LESS THAN characters directly in the fields... you have to use the html character entity for those two characters and other characters such as the ampersand. refer to my previous post in this thread. i have placed a link to w3schools in case you want to learn about how to display other special characters. honestly, i am not sure if iReport/JasperReports has a feature that filters special characters and translates them into their printable form.... that would be cool if they had that. anyway, if you need to display text taken from a datasource (text that you don't intend to scan completely for special symbols), the only solution that i know of is to create an application (java or other language) that will scan the text for special characters and convert the special characters into their corresponding character entities. i'm sure someone out there already has a fix for this... or at least has an idea of how to work around this issue. hth edwin Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now