Arabic Text not supported on Console or VBA outputs

Hashir Hussain 1 Reputation point
2021-02-24T17:48:33.977+00:00

I have written a programme in C sharp to read data from an excel file. The excel file contains bilingual data (in Arabic & English). The output data for Arabic is series of question marks which I tried to fix in almost all ways known to me.
I tried changing input languages, System Locale, Installed Languages and almost everything.
I encountered the same problem for a VBA output on excel sheet. Though I can type in Arabic but the output of these programmes are unreadable.
I believe my machine was working fine before a recent format I did. Formerly, my machine was set to a country in Middle East. May be that's why. But after the recent format, I set my machine to India region while OS set up. I tried changing that too in vain. Nothing is helping.

Note that there is no issue in typing arabic in excel or any other application.

C#
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.
10,280 questions
{count} votes