If I start a tmux session and stat running an instance of “cat > testfile”
I got a fine example of the problem. This is the text I got when I am
trying to write the text directly in the tmux session and read it again
with a hex reader (the word is æøå – three Danish letters):

C3 A6 C3 B8 C3 A5

When I instead sends the letters to the tmux session by using this command:

tmux -u send-keys -t mytest æøå

This is the result:

1B C3 1B A6 1B C3 1B B8 1B C3 1B A5

I don’t know why 1B is placed between each 8-bit but it seems to be the
problem here.


On Wed, Apr 24, 2013 at 1:05 PM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:

> What exactly do you get received? You should get the same bytes you put
> in.
>
>
> On Wed, Apr 24, 2013 at 12:29:08AM +0200, Jacob Bang wrote:
> >    Hi everybody
> >
> >    I have some problems and I hope some of you can help me. My problem
> is I
> >    want to send a command to a tmux session from a cron job by using the
> >    send-keys command in tmus. My first tests works perfectly but I got
> >    problems when trying send some UTF-8 characters. The command I am
> trying
> >    is:
> >
> >    tmux -u send-keys -t mytest "echo test ***" enter
> >
> >    My tmux session is startet with this command (both contains the *u
> option
> >    to activate UTF-8 support):
> >
> >    tmux -u new -s mytest -d
> >
> >    Im also have this in my .tmux.conf file just to be sure tmux
> understand I
> >    want UTF-8 support:
> >
> >    setw -g utf8 on
> >    set -g status-utf8 on
> >
> >    My problem is the revived message is not UTF-8 encoded (looks likes
> it is
> >    split in 8-bit chars). Any good tips how I can get this working?
> >
> >    P.S. Im running tmux 1.8 on Arch Linux. I have also tried the lasted
> GIT
> >    version without any luck.
> >
> >    Jacob Bang / julemand101
>
> >
> ------------------------------------------------------------------------------
> > Try New Relic Now & We'll Send You this Cool Shirt
> > New Relic is the only SaaS-based application performance monitoring
> service
> > that delivers powerful full stack analytics. Optimize and monitor your
> > browser, app, & servers with just a few lines of code. Try New Relic
> > and get this awesome Nerd Life shirt!
> http://p.sf.net/sfu/newrelic_d2d_apr
>
> > _______________________________________________
> > tmux-users mailing list
> > tmux-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tmux-users
>
>


-- 
Jacob Bang / julemand101
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to