Click here to Skip to main content
15,920,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I have doubt in msdn how to print telugu word in c# console application My code is as follows
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

using System.Globalization;

namespace DynamicLINQ
{
    class Program
    {
        static void Main(string[] args)
        {

            // array initializer 
            CultureInfo myCIintl = new CultureInfo("te-IN", true);

           // CultureInfo myCItrad = new CultureInfo(0x044A, false);
            var TeluguStrings = new string[] { "సందేశం", "సెలక్ట్" };

//Non English word in  above string 

            Console.WriteLine( myCIintl.NativeName, TeluguStrings[0]);
            Console.ReadLine();
         }
    }
}
Posted
Updated 2-Dec-13 0:59am
v2

Hi
you should set
Console.OutputEncoding
and
Console.InputEncoding
follow of these exmple:

C#
Console.OutputEncoding = System.Text.Encoding.GetEncoding("Cyrillic");
    Console.InputEncoding = System.Text.Encoding.GetEncoding("Cyrillic");



you can get more information from these links:

http://stackoverflow.com/questions/14969840/problems-with-the-input-of-non-english-characters-into-a-c-sharp-console-app[^]

http://stackoverflow.com/questions/2062875/show-utf8-characters-in-console[^]

Best Regards.
 
Share this answer
 
This is not correct. i was try in this way its getting error on this page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900