Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Unable to enter and display accented characters with Cloudron CLI

    Support
    cli
    3
    8
    96
    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.
    • jeau
      jeau App Dev last edited by girish

      I used to attribute this problem to the lack of locales in the LAMP application. They are there now.

      Accented characters are not displayed in terminal mode and I get weird characters when I edit with vim. If the accented letters are present in the file, they are displayed but as soon as I touch them it's a mess.

      In fact I think the problem is not related to the application but comes from the connection via Cloudron CLI (I use OSX).

      In ssh directly, on the same server, I don't have this problem.

      But maybe I'm wrong

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        Seems to work for me on linux atleast. Maybe a node.js issue on OS X? I tried all sorts of characters.

        679f3795-194a-464b-9845-ecec4951e624-image.png

        Is there an issue in the Web Terminal or just the CLI ?

        jeau 1 Reply Last reply Reply Quote 0
        • jeau
          jeau App Dev @girish last edited by

          @girish I can do your test with cat and it works fine, but I can't enter directly any accented characters.

          Same issue with Web Terminal.
          I tested with OSX and with Linux (Debian).

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            Ah ok, I only copy/pasted the accented characters and did not type it myself. I have no clue how to do that, so maybe someone else can test this out as well.

            1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff last edited by

              I can reproduce at least one issue, simply trying to type German umlauts already has an issue.

              nebulon 1 Reply Last reply Reply Quote 1
              • nebulon
                nebulon Staff @nebulon last edited by

                So this happens because we set the tty to be in raw mode https://nodejs.org/api/tty.html#readstreamsetrawmodemode

                nebulon 1 Reply Last reply Reply Quote 2
                • nebulon
                  nebulon Staff @nebulon last edited by

                  Turns out this has to do with the currently unset LANG environment variable. We have pushed a fix for the next patch release. Since we are not 100% aware of potential side-effects for other parts, which utilize docker's exec the cli and webterminal only will set this to a fixed C.UTF-8 value for the moment.

                  jeau 1 Reply Last reply Reply Quote 2
                  • Topic has been marked as a question  nebulon nebulon 
                  • Topic has been marked as solved  nebulon nebulon 
                  • jeau
                    jeau App Dev @nebulon last edited by

                    @nebulon thanks

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB