Community
    • Login

    Hindi Font Issue

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 5 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SunnyS
      Sunny
      last edited by

      when i try to paste some Hindi content, only some question marks are displayed. How to fix it?

      ccb0d5da-29ad-4f54-84a9-acb5a91e2b2f-image.png

      Terry RT gerdb42G PeterJonesP 3 Replies Last reply Reply Quote 0
      • Terry RT
        Terry R @Sunny
        last edited by

        @Sunny

        I don’t have an answer but there have been some relevant questions like yours which I will provide links to, Japanese font issue and font linking which may contain some ideas to try.

        Terry

        1 Reply Last reply Reply Quote 1
        • gerdb42G
          gerdb42 @Sunny
          last edited by

          @Sunny

          A few points to check:

          • Make sure your file is set to a Unicode-capable encoding (UTF-8 or UTF-16)
          • Check whether the font you are using has the glyphs to display your text
          • Check if the Application you are copying from is capable of providing UNICODETEXT to the clipboard by pasting to Notepad (some older Apps may not)
          1 Reply Last reply Reply Quote 3
          • PeterJonesP
            PeterJones @Sunny
            last edited by PeterJones

            @Sunny ,

            I just used google translate to generate some Hindi text: फुर्तीली भूरी लोमड़ी आलसी कुत्ते के उपर से कूद गई . I pasted that text in Notepad++, which I have set to default to UTF-8 for new documents.

            a2e8cadf-04b2-4a48-a0e3-bc2570466954-image.png

            It didn’t matter whether I had the Settings > Preferences > Misc > Use DirectWrite checkmarked or not, it still displayed properly. (My default font is DejaVu Sans Mono – but that font doesn’t have anything in the Devanagari section, so I think this is the font linking which @Terry-R mentioned)

            1 Reply Last reply Reply Quote 2
            • mkupperM
              mkupper
              last edited by mkupper

              It seems like an encoding issue rather than a font issue. Font issues tend to result in result in ▯ being displayed.

              If my current npp tab is encoded as ANSI and I try to copy/paste UTF-8 content into that tab I often will get ? instead of the intended character(s).

              PeterJonesP 1 Reply Last reply Reply Quote 1
              • PeterJonesP
                PeterJones @mkupper
                last edited by

                @mkupper said in Hindi Font Issue:

                It seems like an encoding issue

                Yes, I think you’re right. A fresh, default installation has Settings > Preferences > New Document set to UTF-8, and even “Apply to opened ANSI files” checkmarked. But if they have a config file that’s been upgraded many times, it might still use ANSI without them having set it; or if they have ever intentionally set that option to ANSI or to one of the pulldown character sets, then it will not be defaulting to UTF-8 for new files. And even if it’s on UTF-8, if they don’t have the “Apply to opened ANSI files” checkmarked or if they have Settings > Preferences > MISC > Auto-detect character encoding set to true, then when they open an existing file (which post-links.txt may have already been a file), it might not be opened as UTF-8.

                If @Sunny had included the status bar in the screenshot, it would have clarified a lot. As it is, @Sunny will have to answer whether the lower-right of the status bar says UTF-8 or something different:
                c96f1885-23d8-434a-affb-bfb482e2b629-image.png

                If it says something different, then @Sunny can do Encoding > UTF-8 (if there aren’t any other characters than the ? that was shown) or Encoding > Convert to UTF-8 (if there are other characters), and then re-paste the text.

                1 Reply Last reply Reply Quote 2
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors