Thread: Extended ASCII Characters in an RTF Control

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User JustMax's Avatar
    Join Date
    Jan 2009
    Posts
    59
    Sorry, the missing key was a poor attempt at humor. Actually, the ASCII character set was extended, according to (www.asciitable.com):
    "As people gradually required computers to understand additional characters and non-printing characters the ASCII set became restrictive. As with most technology, it took a while to get a single standard for these extra characters and hence there are few varying 'extended' sets."

    That, however is a debate I do not wish to engage in. I am just trying to learn and understand how to pass these characters so that I can create a nice looking report.

    Code:
    char topLeftCorner = "┌";
    char topRightCorner = "┐";
    
    char bottomLeftCorner = "└";
    
    char bottomRightCorner = "┘";
    
    char topT = "┬";
    
    char bottomT = "┴";
    
    char leftT = "├";
    char rightT = "┤";
    char crossCorner = "┼";
    
    char horizontalLine = "─";
    
    char verticalLine = "│";
    
    
    strcpy(line,topLeftCorner);

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by JustMax View Post
    Sorry, the missing key was a poor attempt at humor. Actually, the ASCII character set was extended, according to (www.asciitable.com):
    "As people gradually required computers to understand additional characters and non-printing characters the ASCII set became restrictive. As with most technology, it took a while to get a single standard for these extra characters and hence there are few varying 'extended' sets."

    That, however is a debate I do not wish to engage in. I am just trying to learn and understand how to pass these characters so that I can create a nice looking report.
    The debate is unavoidable. The identity of a code point is determined by a code page. The question of what the magic number is is not even the right question.

    And if IBM PC-8 is "extended ASCII" then I'm going to call Unicode "extended ASCII" as well. As soon as there was more than one extension to ASCII the term became meaningless.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Registered User JustMax's Avatar
    Join Date
    Jan 2009
    Posts
    59
    Quote Originally Posted by brewbuck View Post
    The debate is unavoidable. The identity of a code point is determined by a code page. The question of what the magic number is is not even the right question.

    And if IBM PC-8 is "extended ASCII" then I'm going to call Unicode "extended ASCII" as well. As soon as there was more than one extension to ASCII the term became meaningless.
    Any debate is avoidable. Watch . . . .

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by JustMax View Post
    Any debate is avoidable. Watch . . . .
    So on a system where the default codepage is not IBM PC-8 your code will display garbage. That's okay with you?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ascii characters
    By Denethor2000 in forum C++ Programming
    Replies: 3
    Last Post: 03-20-2002, 05:26 AM
  2. Printing extended ASCII characters
    By Jonny M in forum C Programming
    Replies: 2
    Last Post: 03-01-2002, 10:12 AM
  3. Printing characters not in the ASCII table
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 01-21-2002, 01:47 PM
  4. Using Control Characters in Unix
    By jharley in forum C Programming
    Replies: 2
    Last Post: 12-06-2001, 09:17 AM
  5. ASCII characters
    By NuKid in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2001, 09:14 PM