954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Special Character generation

Hi
can anybody tell me how to generate all the special characters in java.

jaxy
Newbie Poster
6 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 
int i = 5;  //  Or number in the ascii table.
System.out.format("%c ", (char)i);


http://www.lookuptables.com/

Is that what you mean by special characters?

-Fredric

Daishi
Junior Poster in Training
80 posts since Aug 2005
Reputation Points: 10
Solved Threads: 2
 
for (int i=1;i<65536;i++)
  {
%>
  <tr>
    <td><%= i %></td>
    <td style="border-right=thin solid blue;">&#<%= i %></td>
    <td>&nbsp;&nbsp;&nbsp;</td>
    <td><%= ++i %></td>
    <td style="border-right=thin solid blue;">&#<%= i %></td>


part of a JSP I wrote that outputs the entire UTF-8 character set.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You