Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Accent whith Autocompletion

    Help wanted · · · – – – · · ·
    2
    4
    625
    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.
    • Raphael
      Raphael last edited by

      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
      • PeterJones
        PeterJones last edited by

        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
        • Raphael
          Raphael last edited by Raphael

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

          1 Reply Last reply Reply Quote 1
          • Raphael
            Raphael last edited by

            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
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors