Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3612234
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:58:27+00:00 2026-05-18T21:58:27+00:00

I would like to have a C# console application print the extended ASCII Codes

  • 0

I would like to have a C# console application print the extended ASCII Codes from http://www.asciitable.com/. In particular I am looking at the line art characters: 169, 170, 179-218. Unfortunately when I tried, I ended up getting ‘Ú’ for 218 and expect to see the other characters from http://www.csharp411.com/ascii-table/.

I’m aware that ASCII only specifies character codes 0 – 127. I found another post with a reference to SetConsoleOutputCP(), but was not able to get that to work in a C# class or find an example of how to do so.

Is it possible to print the line art characters in a C# console application? If it is can someone provide a URL to an example or the code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:58:28+00:00Added an answer on May 18, 2026 at 9:58 pm

    A small program that modifies the codepage used by the Console.OutputEncoding property to use the characters you desire:

    class Program
    {
        static void Main(string[] args)
        {
            Console.OutputEncoding = System.Text.Encoding.GetEncoding(1252);
            Console.WriteLine((char) 169);
            Console.WriteLine((char) 170);
    
            for(char c = (char)179; c <= (char)218; ++c)
            {
                Console.WriteLine(c);
            }
        }
    }
    

    EDIT:

    So I went ahead and looked up the Unicode equivalents of the box art. There’s a few extra glyphs that may be useful to you. That Wikipedia page lists all of their code points.

    I’ve put together this to try them out:

    class Program
    {
        static void Main(string[] args)
        {
            for(int i = 0x2500; i <= 0x2570; i += 0x10)
            {
                for(int c = 0; c <= 0xF; ++c)
                {
                    Console.Write((char) (i + c));
                }
    
                Console.WriteLine();
            }
        }
    }
    

    For me, quite a few glyphs simply come up as ?, but the standard box-art glyphs we’re used to seeing in the old ASCII games do appear for me. Hopefully these will work for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a console application that I would like to run as 'NT AUTHORITY\NetworkService',
I have a Console application hosting a WCF service. I would like to be
I have a c++ console application which I would like to publish using clickonce.
I have a simple application that I would like to sort of automate via
I have a Java console application that is launched from a batch script in
I have a problem that I would like have solved via a SQL query.
I would like to have a reference for the pros and cons of using
I would like to have an iframe take as much vertical space as it
I would like to have a VM to look at how applications appear and
We would like to have user defined formulas in our c++ program. e.g. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.