Problem with terminal result in vs code


The spacing of letters in Arabic does not come in a single word in the Terminal vs code I tried searching, but I couldn’t find a solution. Please help

Could you clarify what you mean?

ok sorry I will explain

my problem is Arabic language in vs code and this not my problem only all people have this problem

For example, in English so you can understand me. Example : when I type “Hello World” and I want it to appear in the Terminal, it appears like this “olleH dlroW” this is the problem with my language (arabic)

Sorry I missed your response. You most likely need to set the locale.

int main()
{
    setlocale(LC_ALL, "ar_SA");
    // rest of your code
}

(no clue id “ar_SA” is the correct one. You can get a list of locale’s by typing locale -a in Terminal)

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.