RSS Forums RSS
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 2672 | Replies: 2 | Thread Tools  Display Modes
Reply
Join Date: Sep 2005
Posts: 6
Reputation: jaxy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jaxy jaxy is offline Offline
Newbie Poster

Special Character generation

  #1  
Oct 17th, 2005
Hi
can anybody tell me how to generate all the special characters in java.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 80
Reputation: Daishi is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 2
Daishi Daishi is offline Offline
Junior Poster in Training

Re: Special Character generation

  #2  
Oct 17th, 2005
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
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,749
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 19
Solved Threads: 200
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Special Character generation

  #3  
Oct 17th, 2005
  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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the Java Forum
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:16 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC