Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unicode equivalent for <br>. Any idea?

 
Eric Low
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking for the Unicode equivalent for <br> in JTextPane (with content-type set to "text/html").
Imagine:

And I want the above to print a <br> in the HTML. Does anyone has any idea?
 
Marcel de Jong
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric,
You can find it a one of the page of Unicode, propable this one:
http://www.unicode.org/charts/PDF/U2200.pdf

Marcel
 
Eric Low
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To explain my intention, lets take a look into a portion of my code:

As shown above, basically, I am trying to insert <br> instead of <p> whenever the user press return. I have tried input :

to the JTextPane, then display the result to the JTextArea, what I get is

I am really confused!!??!?!?
Please help!
Eric Low
SCJP2
 
Eric Low
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have found the answer, it's JRE ver problem, it happens only to v1.3.0, this has been fixed in 1.3.1.... please read :
http://forums.java.sun.com/thread.jsp?forum=57&thread=126795
Seeya!
Eric Low
SCJP2
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic