aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Unicode equivalent for <br>. Any idea? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Unicode equivalent for &lt;br&gt;. Any idea? " Watch "Unicode equivalent for &lt;br&gt;. Any idea? " New topic
Author

Unicode equivalent for &lt;br&gt;. Any idea?

Eric Low
Ranch Hand

Joined: Mar 14, 2002
Posts: 41
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

Joined: May 27, 2002
Posts: 54
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

Joined: Mar 14, 2002
Posts: 41
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

Joined: Mar 14, 2002
Posts: 41
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
 
subject: Unicode equivalent for &lt;br&gt;. Any idea?
 
Similar Threads
displaying html in JTextPane of JDK 1.1.8
the artist formerly known as Prince
Dynamically Scrolling to the newly added row in HTML table.
Another While loop
How to insert HTML content directly in code from JEditorPane ?