Menu

#20 Feature request: encoding for specific host

2.9.x
closed
nobody
None
5
2016-04-04
2016-03-30
No

I've got a bunch of hosts with locale (KOI8) that differs from my local (UTF). So each time I connect to such a host I have to change encoding manually. Can you please consider adding functionality to autoset specific encodings for certain hosts. For example via config file ala:

Host some.host *.bunch.of.hosts
    encoding = KOI8-U

Thanx in advance.

Discussion

  • Araki Ken

    Araki Ken - 2016-03-31

    Hi,
    In such a case, please add a following line to ~/.profile (or something like that) on remote hosts.

    echo -e "\x1b]5379;encoding=KOI8-U\x07"
    ("mlcc encoding KOI8-U" is also available on a remote host where mlcc is installed.

     
  • George L. Yermulnik

    Magic! Thanx!
    Would you consider adding it to the man page?

     

    Last edit: George L. Yermulnik 2016-03-31
    • Araki Ken

      Araki Ken - 2016-04-02

      I added it to "SEE ALSO" section of the man page.
      Thanks.

       
  • George L. Yermulnik

    Thank you!
    Byt the way, I added "-n" to "echo" command to make it not produce a newline.
    How can I close this ticket?

     

    Last edit: George L. Yermulnik 2016-04-03
  • Araki Ken

    Araki Ken - 2016-04-04
    • status: open --> closed
     
  • Araki Ken

    Araki Ken - 2016-04-04

    Thanks. I fixed the man page.

     
  • Araki Ken

    Araki Ken - 2016-04-04
    • status: closed --> open
     
  • Araki Ken

    Araki Ken - 2016-04-04
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB