Skip to content

Commit 6c7683e

Browse files
authored
UTF8ONLY: remove suggestion to disconnect the client (#502)
1 parent 8f0ca14 commit 6c7683e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

extensions/utf8-only.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ copyrights:
1717
IRC predates the Unicode standard. Consequently, although UTF-8 has been widely adopted on IRC, clients cannot assume that all IRC data is UTF-8. This specification defines a way for servers to advertise that they only allow UTF-8 on their network, letting clients change their processing of outgoing and incoming messages accordingly.
1818

1919
## The `UTF8ONLY` ISUPPORT token
20-
This specification introduces a new token `UTF8ONLY` that servers can include in their [ISUPPORT](https://modern.ircdocs.horse/#feature-advertisement) (`005`) output. Servers publishing this token MUST NOT relay content (such as `PRIVMSG` or `NOTICE` message data, channel topics, or realnames) containing non-UTF-8 data to clients. Clients implementing this specification MUST NOT send non-UTF-8 data to the server once they have seen this token. Server handling of such messages is implementation-defined; for example, they MAY send the `INVALID_UTF8` code described below, disconnect the client with an `ERROR` message, or respond in some other way.
20+
This specification introduces a new token `UTF8ONLY` that servers can include in their [ISUPPORT](https://modern.ircdocs.horse/#feature-advertisement) (`005`) output. Servers publishing this token MUST NOT relay content (such as `PRIVMSG` or `NOTICE` message data, channel topics, or realnames) containing non-UTF-8 data to clients. Clients implementing this specification MUST NOT send non-UTF-8 data to the server once they have seen this token. Server handling of such messages is implementation-defined; for example, they MAY send the `INVALID_UTF8` code described below, or respond in some other way.
2121

2222
If a client implementing this specification sees this token, they MUST set their outgoing encoding to UTF-8 without requiring any user intervention. This allows clients to work transparently on networks that only allow UTF-8 traffic.
2323

@@ -36,12 +36,6 @@ Client: USER u s e :<non-utf8 realname>
3636
Server: FAIL USER INVALID_UTF8 :Message rejected, your IRC software MUST use UTF-8 encoding on this network
3737
```
3838

39-
```
40-
Client: PRIVMSG #ircv3 :<non-utf-8 message>
41-
Server: ERROR :Your IRC software MUST use UTF-8 encoding on this network
42-
... server disconnects the client ...
43-
```
44-
4539
```
4640
Client: PRIVMSG #ircv3 :<non-utf-8 message>
4741
Server: WARN PRIVMSG INVALID_UTF8 :Your message was not correctly encoded as UTF-8 and had to be modified

0 commit comments

Comments
 (0)