|
-
Dec 10th, 2003, 06:05 AM
#1
Thread Starter
Member
Printing ascii characters
I understabd at the beginning if the ascii character set there are certain symbols ie hearts, smilies and so on.
What I need to know is how to access them to print.
Something like :
System.out.print("This is a smiling face " + asciiValue1);
Can this be done?
Any help welcome
-
Dec 10th, 2003, 09:13 AM
#2
Thread Starter
Member
I have found out that it is the uncode character setthat I will need to use.
Specifically I am trying to print out a heart, club, dimaond and spade symbols.
Can anybody help?
-
Dec 10th, 2003, 11:39 AM
#3
Frenzied Member
See if the download in this post will help you:
http://www.vbforums.com/showthread.p...hreadid=268694
Look under Miscellaneous Symbols for the codes.
Last edited by ccoder; Dec 10th, 2003 at 11:45 AM.
-
Dec 10th, 2003, 12:02 PM
#4
Thread Starter
Member
9824 = ¢¼ 9827 = ¢À
9829 = ¢¾ 9830 = ♦
I have found the codes but how do you utelise then?
System.out.print(unicode(9824));?????????
-
Dec 11th, 2003, 12:32 AM
#5
Dazed Member
Code:
public void printSymbols(){
for(int i = 1; i <= 6; ++i){
char c = (char) i;
System.out.println(c);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|