# utf8_set

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

```c
void utf8_set(struct utf8_data *ud, u_char ch)
```

## Parameters

- `ud` (`struct utf8_data *`)
- `ch` (`u_char`)

## Called by

- [`format_draw`](/en/tmux/latest/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format-draw.c#L782)
- [`format_draw_many`](/en/tmux/latest/reference/c-function-format-draw-c-format_draw_many/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format-draw.c#L683)
- [`format_grid_line`](/en/tmux/latest/reference/c-function-format_grid_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6095)
- [`grid_get_cell1`](/en/tmux/latest/reference/c-function-grid-c-grid_get_cell1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L577)
- [`input_print`](/en/tmux/latest/reference/c-function-input-c-input_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1219)
- [`screen_redraw_border_set`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_border_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L74)
- [`screen_write_alignmenttest`](/en/tmux/latest/reference/c-function-screen_write_alignmenttest/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1219)
- [`screen_write_cell`](/en/tmux/latest/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2640)
- [`screen_write_putc`](/en/tmux/latest/reference/c-function-screen_write_putc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L397)
- [`status_prompt_key`](/en/tmux/latest/reference/c-function-status_prompt_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1712)
- [`status_prompt_paste`](/en/tmux/latest/reference/c-function-status-c-status_prompt_paste/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1217)
- [`status_prompt_redraw_quote`](/en/tmux/latest/reference/c-function-status-c-status_prompt_redraw_quote/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L842)
- [`status_prompt_replace_complete`](/en/tmux/latest/reference/c-function-status-c-status_prompt_replace_complete/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1311)
- [`tty_check_codeset`](/en/tmux/latest/reference/c-function-tty_check_codeset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1476)
- [`utf8_fromcstr`](/en/tmux/latest/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L865)
- [`window_copy_copy_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5641)

## Referenced by

- [`screen_redraw_draw_border_arrows`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_border_arrows/) (function)
- [`screen_write_box_border_set`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_box_border_set/) (function)
- [`style_set_scrollbar_style_from_option`](/en/tmux/latest/reference/c-function-style_set_scrollbar_style_from_option/) (function)

## Referenced declarations

- [`utf8_data.data`](/en/tmux/latest/reference/c-struct-utf8_data-data/) (attribute)
- [`utf8_data`](/en/tmux/latest/reference/c-struct-utf8_data/) (struct)
