'Showing RTL languages in cmd & vscode

I'm using python for web scraping but when I want to extract contents from a page, the Persian contents don't show correctly. CMD shows squares instead of letters and VSCode shows letters separated and disorderly. Even when I print a simple Persian word, the problem doesn't solve.

I change the font and I change the encoding (default encoding is UTF-8) and none of them helps.

The "سلام" word showed "م‌ا‌ل‌س" in VSCode.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source