• Login
Community
  • Login

Accent whith Autocompletion

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 976 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.
  • R
    Raphael
    last edited by Oct 17, 2018, 7:45 PM

    Hello there,
    I’m using a User Defined Language to write my pseudo-code, and I’ve wrote an autocompletion file for it. As I’m French, I’m using accents in some keywords, but the autocompletion replaces my accents letters with other characters. For instance, ‘é’ is replaced with ‘é’.

    Is there a way to force the autocompletion to use correct UTF-8 characters ?

    1 Reply Last reply Reply Quote 0
    • P
      PeterJones
      last edited by Oct 17, 2018, 7:53 PM

      The files where the autocompletion lists are stored are XML files. You should be able to either set the encoding in the XML header to be something that’s unicode (an example from mine is encoding="Windows-1252", and that’s not a unicode encoding); also, you might be able to use &-entities (Á, for example) to make sure it’s the right character, regardless of encoding (I don’t recall offhand whether attribute values expand XML entities, but I think they do).

      1 Reply Last reply Reply Quote 3
      • R
        Raphael
        last edited by Raphael Oct 17, 2018, 8:20 PM Oct 17, 2018, 8:19 PM

        Thanks, i used UTF-8 header and it worked !

        1 Reply Last reply Reply Quote 1
        • R
          Raphael
          last edited by Oct 18, 2018, 5:07 PM

          I just edited the xml file and for some reason, now I have the strange characters back in the autocompletion. The header is still showing UTF-8, the xml file is encodeed itself in UTF-8.
          I have tried using the &-entities but they are shown as text

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