Unicode Bangla text not rendering properly in Windows Terminal console #22914

Open
opened 2026-01-31 08:27:03 +00:00 by claunia · 0 comments
Owner

Originally created by @memamun on GitHub (Feb 13, 2025).

Windows Terminal version

1.21.10351.0

Windows build number

10.0.19045.0

Other Software

PowerShell 7.4.6

Steps to reproduce

Steps to reproduce

  1. Downlaod or copy the json to a file news.json with UTF-8 encoding containing Bangla text (see code snippet below).
  2. Open Windows Terminal (PowerShell)
  3. Set output encoding to UTF-8: $OutputEncoding = [System.Text.Encoding]::UTF8
  4. Run: Get-Content -Path .\news.json -Raw | ConvertFrom-Json
  5. Observe incorrect Bangla rendering in the output.

Download the File: news.json

[
    {
        "title": "সাগর-রুনি হত্যা: নিরাপত্তাকর্মীকে কারা ফটকে জিজ্ঞাসাবাদ",
        "link": "https://www.prothomalo.com/bangladesh/ksfmm5h342"
    },
    {
        "title": "বছরে আয় ৩১৫০ কোটি টাকা, আবারও বিশ্বের সবচেয়ে বেশি আয়ের অ্যাথলেট ক্রিস্টিয়ানো রোনালদো",
        "link": "https://www.prothomalo.com/sports/football/b4uf56g5y6"
    },
    {
        "title": "মোটরযানের গতিসীমা নির্দেশিকার বাস্তবায়ন চায় রোড সেফটি কোয়ালিশন",
        "link": "https://www.prothomalo.com/bangladesh/r9lmm4kczo"
    },
    {
        "title": "জাতিসংঘের প্রতিবেদন ট্রাইব্যুনালে অকাট্য দলিল হিসেবে ব্যবহার করা যাবে: চিফ প্রসিকিউটর",
        "link": "https://www.prothomalo.com/bangladesh/zu65htd5rd"
    },
    {
        "title": "৫ আগস্টের ‘মার্চ অন ঢাকা’ ঠেকাতে যেভাবে পরিকল্পনা করেছিল হাসিনা সরকার",
        "link": "https://www.prothomalo.com/bangladesh/f8x2ud35t3"
    },
    {
        "title": "শান্ত-মারিয়াম ফাউন্ডেশন ডে উদ্‌যাপন",
        "link": "https://www.prothomalo.com/education/campus/y2e1oqab76"
    },
    {
        "title": "যুক্তরাষ্ট্রের জাতীয় গোয়েন্দা প্রধান হলেন তুলসী গ্যাবার্ড",
        "link": "https://www.prothomalo.com/video/international/55zuoow5co"
    },
    {
        "title": "ন্যূনতম সংস্কার কর্মসূচির একটি নকশা",
        "link": "https://www.prothomalo.com/opinion/column/hdmqrmrbm3"
    },
    {
        "title": "ধামরাইয়ে বিনোদনকেন্দ্রের কর্মীদের সঙ্গে শিক্ষার্থীদের সংঘর্ষের ঘটনায় মামলা",
        "link": "https://www.prothomalo.com/bangladesh/district/azghc2wcg3"
    },
    {
        "title": "মাকে নিয়ে মজার ঘটনা",
        "link": "https://www.prothomalo.com/other/ks01wwijtp"
    },
    {
        "title": "জাহাঙ্গীরনগরে সি ইউনিটের ভর্তি পরীক্ষা শুরু, আসনপ্রতি পরীক্ষার্থী ১২১",
        "link": "https://www.prothomalo.com/education/examination/fac92k5hwq"
    },
    {
        "title": "জাতীয় ঐকমত্য কমিশন গঠন, সভাপতি অধ্যাপক ইউনূস",
        "link": "https://www.prothomalo.com/bangladesh/o8jo54zlmv"
    },
    {
        "title": "কন্যাসন্তান নিয়ে বিতর্কিত মন্তব্য করে বিপদে চিরঞ্জীবী",
        "link": "https://www.prothomalo.com/entertainment/bollywood/344j4pvcez"
    },
    {
        "title": "লোকজ উৎসবে নারায়ণগঞ্জ বন্ধুসভার মূকাভিনয় প্রদর্শন",
        "link": "https://www.prothomalo.com/activities/nnz22sg2r9"
    },
    {
        "title": "গাজীপুরে কাশেমের জানাজায় আওয়ামী লীগ নিষিদ্ধের দাবি",
        "link": "https://www.prothomalo.com/bangladesh/district/3dna5uwiap"
    },
    {
        "title": "বসন্তের আমেজে ফুলে ফুলে তারকারা",
        "link": "https://www.prothomalo.com/celeb/look/8scw6wllfs"
    },
    {
        "title": "সংস্কার ছাড়া নির্বাচন নয়: জামায়াতে ইসলামী",
        "link": "https://www.prothomalo.com/politics/lnvdeecjtk"
    },
    {
        "title": "মহারাষ্ট্রের সাবেক মন্ত্রীর ব্যাংককগামী ছেলেকে ঘিরে মাঝ আকাশে নাটকীয়তা",
        "link": "https://www.prothomalo.com/world/india/6sz6q4ln4r"
    },
    {
        "title": "আজকের বিনিময় হার",
        "link": "https://www.prothomalo.com/business/sx6znkk8sk"
    },
    {
        "title": "ডিস্ক প্রলাপস কেন হয়, সতর্কতা ও চিকিৎসা কী",
        "link": "https://www.prothomalo.com/lifestyle/health/0g2c16pw8n"
    }
]

Expected Behavior

Bangla characters should render correctly, as they do in text editors or web browsers using the same font.

Actual Behavior

Image

Bangla characters are garbled (see screenshot attached).

Description of the issue:

Bengali characters are not rendering correctly in Windows Terminal when displaying any Bengali text output on windows terminal.

I have tried Setting $OutputEncoding to UTF-8 and changing different font but not working.
Please see the attached screenshot for reference.

Please fix this issue. We(Bangladeshi) need this in the moth of Language (February).

I appreciate your effort to fix the bug. Thank you.

Originally created by @memamun on GitHub (Feb 13, 2025). ### Windows Terminal version 1.21.10351.0 ### Windows build number 10.0.19045.0 ### Other Software PowerShell 7.4.6 ### Steps to reproduce ## Steps to reproduce 1. Downlaod or copy the json to a file `news.json` with UTF-8 encoding containing Bangla text (see code snippet below). 2. Open Windows Terminal (PowerShell) 3. Set output encoding to UTF-8: `$OutputEncoding = [System.Text.Encoding]::UTF8` 4. Run: `Get-Content -Path .\news.json -Raw | ConvertFrom-Json` 5. Observe incorrect Bangla rendering in the output. ## Download the File: [news.json](https://github.com/user-attachments/files/18781280/news.json) ```powershell [ { "title": "সাগর-রুনি হত্যা: নিরাপত্তাকর্মীকে কারা ফটকে জিজ্ঞাসাবাদ", "link": "https://www.prothomalo.com/bangladesh/ksfmm5h342" }, { "title": "বছরে আয় ৩১৫০ কোটি টাকা, আবারও বিশ্বের সবচেয়ে বেশি আয়ের অ্যাথলেট ক্রিস্টিয়ানো রোনালদো", "link": "https://www.prothomalo.com/sports/football/b4uf56g5y6" }, { "title": "মোটরযানের গতিসীমা নির্দেশিকার বাস্তবায়ন চায় রোড সেফটি কোয়ালিশন", "link": "https://www.prothomalo.com/bangladesh/r9lmm4kczo" }, { "title": "জাতিসংঘের প্রতিবেদন ট্রাইব্যুনালে অকাট্য দলিল হিসেবে ব্যবহার করা যাবে: চিফ প্রসিকিউটর", "link": "https://www.prothomalo.com/bangladesh/zu65htd5rd" }, { "title": "৫ আগস্টের ‘মার্চ অন ঢাকা’ ঠেকাতে যেভাবে পরিকল্পনা করেছিল হাসিনা সরকার", "link": "https://www.prothomalo.com/bangladesh/f8x2ud35t3" }, { "title": "শান্ত-মারিয়াম ফাউন্ডেশন ডে উদ্‌যাপন", "link": "https://www.prothomalo.com/education/campus/y2e1oqab76" }, { "title": "যুক্তরাষ্ট্রের জাতীয় গোয়েন্দা প্রধান হলেন তুলসী গ্যাবার্ড", "link": "https://www.prothomalo.com/video/international/55zuoow5co" }, { "title": "ন্যূনতম সংস্কার কর্মসূচির একটি নকশা", "link": "https://www.prothomalo.com/opinion/column/hdmqrmrbm3" }, { "title": "ধামরাইয়ে বিনোদনকেন্দ্রের কর্মীদের সঙ্গে শিক্ষার্থীদের সংঘর্ষের ঘটনায় মামলা", "link": "https://www.prothomalo.com/bangladesh/district/azghc2wcg3" }, { "title": "মাকে নিয়ে মজার ঘটনা", "link": "https://www.prothomalo.com/other/ks01wwijtp" }, { "title": "জাহাঙ্গীরনগরে সি ইউনিটের ভর্তি পরীক্ষা শুরু, আসনপ্রতি পরীক্ষার্থী ১২১", "link": "https://www.prothomalo.com/education/examination/fac92k5hwq" }, { "title": "জাতীয় ঐকমত্য কমিশন গঠন, সভাপতি অধ্যাপক ইউনূস", "link": "https://www.prothomalo.com/bangladesh/o8jo54zlmv" }, { "title": "কন্যাসন্তান নিয়ে বিতর্কিত মন্তব্য করে বিপদে চিরঞ্জীবী", "link": "https://www.prothomalo.com/entertainment/bollywood/344j4pvcez" }, { "title": "লোকজ উৎসবে নারায়ণগঞ্জ বন্ধুসভার মূকাভিনয় প্রদর্শন", "link": "https://www.prothomalo.com/activities/nnz22sg2r9" }, { "title": "গাজীপুরে কাশেমের জানাজায় আওয়ামী লীগ নিষিদ্ধের দাবি", "link": "https://www.prothomalo.com/bangladesh/district/3dna5uwiap" }, { "title": "বসন্তের আমেজে ফুলে ফুলে তারকারা", "link": "https://www.prothomalo.com/celeb/look/8scw6wllfs" }, { "title": "সংস্কার ছাড়া নির্বাচন নয়: জামায়াতে ইসলামী", "link": "https://www.prothomalo.com/politics/lnvdeecjtk" }, { "title": "মহারাষ্ট্রের সাবেক মন্ত্রীর ব্যাংককগামী ছেলেকে ঘিরে মাঝ আকাশে নাটকীয়তা", "link": "https://www.prothomalo.com/world/india/6sz6q4ln4r" }, { "title": "আজকের বিনিময় হার", "link": "https://www.prothomalo.com/business/sx6znkk8sk" }, { "title": "ডিস্ক প্রলাপস কেন হয়, সতর্কতা ও চিকিৎসা কী", "link": "https://www.prothomalo.com/lifestyle/health/0g2c16pw8n" } ] ``` ### Expected Behavior ### Bangla characters should render correctly, as they do in text editors or web browsers using the same font. ### Actual Behavior ![Image](https://github.com/user-attachments/assets/8d47d153-2451-46da-89a0-28526a939163) ### Bangla characters are garbled (see screenshot attached). **Description of the issue:** Bengali characters are not rendering correctly in Windows Terminal when displaying any Bengali text output on windows terminal. I have tried Setting $OutputEncoding to UTF-8 and changing different font but not working. Please see the attached screenshot for reference. Please fix this issue. We(Bangladeshi) need this in the moth of Language (February). I appreciate your effort to fix the bug. Thank you.
claunia added the Needs-TriageIssue-BugNeeds-Author-FeedbackNo-Recent-Activity labels 2026-01-31 08:27:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22914