iterm - Scandinavian characters in tmux -
iterm - Scandinavian characters in tmux -
# .tmux.conf set -g status-utf8 on setw -g utf8 on
yet, still when come in scandinavian charaters æ
, ø
, å
in terminal window, next output:
<00c3><00a6><00c3><00b8><00c3><00a5>
i'm using iterm2
terminal, , characters printed correctly outside of tmux.
are using zsh? able produce result (inside , outside tmux) setting lc_ctype en_us.us-ascii
while sending utf-8 (i.e. lying zsh (and other locale-sensitive programs) character set expect).
check lc_all, lc_ctype, and/or lang have appropriate values within tmux session; want utilize consistent value ends .utf-8
. can utilize locale
view active values , locale -a
list available values.
you may need reset errant variable(s) in tmux global and/or sessions environments (so new sessions/windows/panes not maintain getting bad values). can inspect tmux global environment with
tmux show-environment -g | grep -e 'lc|lang'
adjust values (e.g.) tmux set-environment -g lang "$your_value"
.
each session can override environment variables (for new windows , panes created in session). can inspect session’s environment with
tmux show-environment -t "$session_name" | grep -e 'lc|lang'
you can unset session environment values (e.g.) tmux set-environment -t "$session_name" -u lang
(so global value used new windows/panes), or adjust session values tmux set-environment -t "$session_name" lang "$your_value"
.
or, if not have of import sessions, restart tmux server set of known-good locale environment variable values.
tmux iterm
Comments
Post a Comment