Share via

Console App supports Hebrew Unicode

G S 0 Reputation points
2026-02-13T06:16:20.5033333+00:00

Hi,

When I used Hebrew characters , they are not presented well in the black screen.

What I need to do to support it .

I'm using .NET 10.

Thanks,

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Adiba Khan 2,265 Reputation points Microsoft External Staff
    2026-02-13T11:02:53.5466667+00:00

    Thank you for reaching out. By default, the Windows console may not correctly render Hebrew characters unless both the application and the console environment are configured for Unicode.

    1. Ensure your Application Uses UTF-8 Encoding In your .NET console application, explicitly set the output encoding:
         using System;
         using System.Text;
         
         class Program
         {
         	static void Main()
         	{
         		Console.OutputEncoding = Encoding.UTF8;
         		Console.InputEncoding = Encoding.UTF8;
         
         		Console.WriteLine("Hebrew_sample_text");
         	}
         }
      
    2. Change Console Code Page to UTF-8 Before running your application, execute the following command in Command Prompt:
         chcp 65001
      
      Code page 65001 enables UTF-8 support
    3. Use a Unicode-Compatible Font Make sure the console font supports Hebrew characters:
      1. Open Command Prompt
      2. Right-click title bar -> Properties
      3. Go to Font tab
      4. Select Consoles or another TryeType font that supports Hebrew
      Raster fonts will not display Hebrew correctly.
    4. Use Windows Terminal (Recommended) The legacy console has limited RTL rendering support. For better Unicode and RTL handling, we recommend using Windows Terminal, which provides improved Unicode support.
    5. Important Limitation (RTL Rendering) Even with UTF-8 enables, the classic Windows Console does not fully support bidirectional (BiDi) text rendering. Hebrew text may appear left-to-right instead of right-to-left. If full RTL layout is required, consider:
      1. Using Windows Terminal
      2. Building a WPF or WinForms application
      3. Writing output to a file and viewing it in a Unicode-aware editor.

    Please let us know if you require any further assistance we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer".


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.