• Login
Community
  • Login

Hindi Font Issue

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 5 Posters 2.3k 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.
  • S
    Sunny
    last edited by Jun 13, 2023, 2:24 AM

    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

    T G P 3 Replies Last reply Jun 13, 2023, 3:37 AM Reply Quote 0
    • T
      Terry R @Sunny
      last edited by Jun 13, 2023, 3:37 AM

      @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
      • G
        gerdb42 @Sunny
        last edited by Jun 13, 2023, 7:16 AM

        @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
        • P
          PeterJones @Sunny
          last edited by PeterJones Jun 13, 2023, 1:08 PM Jun 13, 2023, 1:06 PM

          @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
          • M
            mkupper
            last edited by mkupper Jun 13, 2023, 4:40 PM Jun 13, 2023, 4:36 PM

            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).

            P 1 Reply Last reply Jun 13, 2023, 5:51 PM Reply Quote 1
            • P
              PeterJones @mkupper
              last edited by Jun 13, 2023, 5:51 PM

              @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
              5 out of 6
              • First post
                5/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors