# io.github.libtmux.ServerConfig.ServerConfig.endpointCommand

- **Module:** io.github.libtmux.ServerConfig.ServerConfig
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/ServerConfig.java#L107
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-serverconfig-serverconfig-endpointcommand/

```
io.github.libtmux.ServerConfig.ServerConfig.endpointCommand() -> List<String>
```

The argv prefix every command on this server begins with: the binary, {@code -u}, the server selection, and the config file if one was pinned.

{@code -u} says this client reads UTF-8. Without it tmux decides from {@code LC_ALL},
{@code LC_CTYPE} and {@code LANG}, and a client it judges not to be UTF-8 has every non-ASCII
character in every reply replaced with {@code _} before it is sent — so a session named
{@code café} reads back as {@code caf_}, and a pane's directory becomes a path that does not
exist. The flag is in tmux's option string on every supported release.

Deliberately the flag rather than {@code LC_ALL} in the child's environment, which would
reach the same conclusion and then be inherited by every pane the server spawns from this
client.
