Skip to main content

Telnet Charset Option (CHARSET)

Option code: 42

See also: RFC 2066

Early versions of Telnet assumed that ASCII charset is in use. This telnet option allowed switching to a different charset.

RFC 5198 introduces a default of UTF-8 for new protocols going forward, but notes in Appendix D that further work on a new telnet option would be needed to retrofit this to telnet, and does not change existing protocols.

TokensBytesMeaning
IAC WILL NAWS255 251 31Client: I can negotiate charsets
IAC WONT NAWS255 252 31Client: I won't negotiate charsets
IAC DO NAWS255 253 31Server: Hey client, let's negotiate charsets
IAC DONT NAWS255 254 31Server: Sorry, I cannot negotiate charsets

Handshake plus initial message

info

The charset can also be sent as a MNES variable