Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
hello every one i am working c# console app in which we get input form user in urdu/Arabic.

i have try many way form google but they didn't work.

output is پ ک س ت ا ن required output پاکستان

What I have tried:

Console.OutputEncoding = Encoding.UTF8;

change console font
Posted
Updated 14-May-16 5:20am
v2
Comments
Sergey Alexandrovich Kryukov 14-May-16 15:21pm    
.NET Unicode use is not a problem in Windows, but is functionally defunct with .NET, for all or most .NET versions combined with OS (I did not check all of them). You can setup encoding, but it will throw exceptions, and so on. I cannot explain it; it looks like a big .NET defect. If you want Unicode, create your own emulation of console.
—SA
sdsoft.comze.com 15-May-16 2:11am    
thanks can you explain little about own emulation of console. i am just 18 and not grate programmer.
Sergey Alexandrovich Kryukov 15-May-16 9:35am    
I just wanted to say, use some .NET UI, where you can use text box for user input, text box or list box for output, and so on.
—SA
sdsoft.comze.com 15-May-16 10:13am    
i have to do this in console.
Sergey Alexandrovich Kryukov 15-May-16 10:39am    
You may "have to" whatever you want, but it does not mean you can. Then what, do nothing? :-)
—SA

1 solution

Console output is usually ASCII with a code page and does not support ligature mappings for right to left languages or even some Chinese settings, like graphical based operating systems (that you must do yourself).
 
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