Community
    • Login

    Not displaying accented characters in INI files

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 275 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
      SebastianH
      last edited by

      Repro steps:

      1. Create a new document (with encoding set by default to UTF-16 BOM).
      2. Paste this text: "foo=¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ ". This displays correctly.
      3. Change language to “INI file”. The The text to the right of the comma now displays like this:
        0e5fdfef-fd3c-4fd5-8b15-997e1e755136-image.png

      This consistently reproes with any text that contains any of the above characters, with all fonts I installed. In particular with “Tahoma” and “Unifont”. It also reproes with other built in languages.

      However, it does not repro with user defined languages. So, as a workaround I defined myself a user defined language. However, with that I wasn’t able to reproduce the nice coloring that distinguishes the name, the equal sign, and the right hand side like this:
      47cb511d-6223-4c1d-8981-82781277c35f-image.png

      ━━━━━━━━━━━━━━━━━━━━━
      Debug info:
      Notepad++ v8.6.7 (64-bit)
      Build time : May 12 2024 - 20:04:00
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line : “C:\junk\crumbs.txs”
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      Periodic Backup : ON
      OS Name : Windows 10 Pro (64-bit)
      OS Version : 22H2
      OS Build : 19045.4412
      Current ANSI codepage : 1252
      Plugins :
      mimeTools (3.1)
      NppConverter (4.6)
      NppExport (0.4)

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

        @SebastianH said in Not displaying accented characters in INI files:

        foo=¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ

        It works for me:

        81b9c842-61dd-48bd-bbba-43eae93edced-image.png
        =>
        6078fc5f-72f9-42bd-80ee-017164250713-image.png

        My font is Deja Vu Sans Mono – a free / open-source monospace font with a really good selection of Unicode glyph coverage.

        The font you mentioned, Tahoma, is a proportional font, not a monospace font, so is not the kind of font I recommend for Text Editing. But it works for me, too:

        da25a1f0-7271-46d5-91d7-5304bb2656d5-image.png

        You might want to try to change your Settings > Preferences > MISC > Use DirectWrite setting, then restart, and see if it has the same behavior for you. (It works the same for me whether DirectWrite is on or off, but sometimes the DW behaves differently with different versions of the same font.)

        S 1 Reply Last reply Reply Quote 1
        • S
          SebastianH @PeterJones
          last edited by SebastianH

          @PeterJones said in Not displaying accented characters in INI files:

          Use DirectWrite s

          Thanks, that solved the problem.

          (BTW, there was an error in my OP: Replace “comma” → “equal sign”.)

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