Emacs has two types of strings: multibyte and unibyte. The request library is essentially a giant ‘concat’ call, which converts the entire result to multibyte if any single component is multibyte, including the headers. Even if you encoded the body: that effect will be spoiled by a single multibyte header string. This is regardless of the header actually containing multibyte characters: while an Emacs string literal containing only simple characters will be unibyte, an API key fetched from an external source will often be multibyte, e.g. ‘shell-command-to-string’.
Emacs has two types of strings: multibyte and unibyte. The request library is essentially a giant ‘concat’ call, which converts the entire result to multibyte if any single component is multibyte, including the headers. Even if you encoded the body: that effect will be spoiled by a single multibyte header string. This is regardless of the header actually containing multibyte characters: while an Emacs string literal containing only simple characters will be unibyte, an API key fetched from an external source will often be multibyte, e.g. ‘shell-command-to-string’.
Example:
Output:
And: