Thread: Printing extended ASCII characters

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    2

    Post Printing extended ASCII characters

    I am writing a program to print a report. I need to include the pound sign symbol on this report(£), which I have discovered is ASCII character #156 (thanks!).
    Trouble is, my printer does not seem to recognise this character from within a C program.
    I have run a small program to loop through from 1 - 255 and print all characters (ie all ASCII), but it is printing blanks after #127.
    I gather that characters from 128 - 255 are extended ASCII characters - is there a way I can get my printer to recognise these (within C)?
    They can be printed from a word processed document, so there must be a way!

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Try using an unsigned char instead of a normal char

  3. #3
    Sayeh
    Guest
    What font are you printing in? What kind of printer (dot matrix, laser, inkjet, etc.) do youhave?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Printing only certain characters
    By dmkanz07 in forum C Programming
    Replies: 9
    Last Post: 04-18-2007, 07:40 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. Replies: 5
    Last Post: 12-22-2004, 05:46 PM
  4. ascii characters video displaying on tv screen
    By deian in forum C Programming
    Replies: 6
    Last Post: 10-12-2004, 09:46 PM
  5. Printing characters not in the ASCII table
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 01-21-2002, 01:47 PM