Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

213
Vistas
Printing a sharp sign character

I am trying to print this Unicode character(and many others) but the Console displays a ?. It should print the sharp sign https://unicode-table.com/en/266F/ Could you please help me? "kjfnv" is in UTF-16BE, I have tried it in UTF-16LE too (6F 26), but it does not work

char kjfnv = '\u6F26';
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I am trying to print this Unicode character(and many others) but the Console displays a '?'.

The problem is not with the character, but it's the console not being configured the correct font to display this character.

You can manually set a console's Font, here's a tutorial on how to do it. I don't know of a way to set it programmatically (yet).

https://www.tenforums.com/tutorials/93961-change-console-window-font-font-size-windows.html

Here's a .net Fiddle: https://dotnetfiddle.net/xLvRq2

using System;
                    
public class Program
{
    public static void Main()
    {
        char kjfnv = '\u266F';
        Console.WriteLine(kjfnv);
    }
}

Output:

♯

Update:

my personal set of applicable fonts in the console is very limited - meaning: I am not able to display the character.

However, the .net fiddle proves the methodology is correct - meaning: changing your console host, or find a way to make use of the correct font in Console should do the trick.

Here's a article on how to change fonts in powershell. Possibly a similar thing exists for the default console host: https://community.idera.com/database-tools/powershell/powertips/b/tips/posts/adding-more-fonts-to-powershell-console


@EricMovsessian: wasn't able to get this working without seriously needing to change some default values. For me this is not worth further investigation.

Keep in mind Console graphic capabilities are very limited, perhaps you want to consider an alternative technique, or just use the number sign # as a substitute

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda