# utf8_isvalid

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L756
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-utf8_isvalid/

```c
int utf8_isvalid(const char *s)
```

## Parameters

- `s` (`const char *`)

## Called by

- [`check_name`](/en/tmux/latest/reference/c-function-check_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L304)
- [`clean_name`](/en/tmux/latest/reference/c-function-clean_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L289)
- [`input_exit_rename`](/en/tmux/latest/reference/c-function-input-c-input_exit_rename/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2816)

## Calls

- [`utf8_append`](/en/tmux/latest/reference/c-function-utf8_append/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L766)

## Other function references

- [`utf8_open`](/en/tmux/latest/reference/c-function-utf8_open/) (function)

## Referenced by

- [`window_set_fill_character`](/en/tmux/latest/reference/c-function-window_set_fill_character/) (function)

## Referenced declarations

- [`UTF8_DONE`](/en/tmux/latest/reference/c-enum-utf8_state-utf8_done/) (constant)
- [`UTF8_MORE`](/en/tmux/latest/reference/c-enum-utf8_state-utf8_more/) (constant)
