Results 1 to 5 of 5

Thread: Printing ascii characters

  1. #1

    Thread Starter
    Member
    Join Date
    May 2002
    Location
    AUS
    Posts
    38

    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

  2. #2

    Thread Starter
    Member
    Join Date
    May 2002
    Location
    AUS
    Posts
    38
    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?

  3. #3
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    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.

  4. #4

    Thread Starter
    Member
    Join Date
    May 2002
    Location
    AUS
    Posts
    38
    9824 = ¢¼ 9827 = ¢À
    9829 = ¢¾ 9830 = ♦

    I have found the codes but how do you utelise then?

    System.out.print(unicode(9824));?????????

  5. #5
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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
  •  



Click Here to Expand Forum to Full Width