encoding
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | encoding [2014/04/05 16:30] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Syntax====== | ||
+ | [[encoding]] \\ | ||
+ | [[encoding]] //rule// \\ | ||
+ | [[encoding]] //rule// NONE \\ | ||
+ | [[encoding]] //rule// // | ||
+ | |||
+ | ======Overview====== | ||
+ | The page [[encodings and locales]] discusses how to tell EPIC what encoding you are using locally. | ||
+ | |||
+ | EPIC will automatically send all your messages to IRC in UTF-8, and will automatically handle any incoming messages in UTF-8. | ||
+ | |||
+ | An ENCODING rule contains three parts | ||
+ | |||
+ | -- A server part | ||
+ | -- A slash | ||
+ | -- A target part (a nick or a channel) | ||
+ | |||
+ | Either side is optional, along with the slash. | ||
+ | |||
+ | =====Syntax Forms===== | ||
+ | /ENCODING | ||
+ | Show all encoding rules -- there are always three built in rules (discussed below) | ||
+ | |||
+ | /ENCODING < | ||
+ | Show one specific rule -- you must type the //< | ||
+ | |||
+ | /ENCODING < | ||
+ | Delete a rule | ||
+ | |||
+ | /ENCODING < | ||
+ | Create a new rule using the given encoding. | ||
+ | |||
+ | =====RULES===== | ||
+ | ENCODING rules have overlap -- so when EPIC needs to be able to choose between multiple rules, it does this: | ||
+ | |||
+ | ^ Priority ^ Rule Form ^ Explanation ^ | ||
+ | | 1 | server/ | ||
+ | | 2 | / | ||
+ | | 3 | server/ | ||
+ | | 4 | / | ||
+ | | 5 | server/ | ||
+ | | 6 | " | ||
+ | |||
+ | The //server// part follows the same rules as /SERVER -UPDATE | ||
+ | * A server refnum (a number) | ||
+ | * A server " | ||
+ | * A server " | ||
+ | * A server group name | ||
+ | * A server 005 NETWORK name | ||
+ | * Any server altname | ||
+ | |||
+ | If your server description contains a port, that must match as well | ||
+ | |||
+ | ====Examples==== | ||
+ | /ENCODING 4 KOI8-R | ||
+ | Server 4, and anybody on Server 4 that doesn' | ||
+ | |||
+ | /ENCODING EFNet/ CP437 | ||
+ | Any server belonging to group " | ||
+ | |||
+ | /ENCODING hop ISO-8859-1 | ||
+ | Any hop I talk to uses ISO-8859-1 | ||
+ | |||
+ | /ENCODING EFNet/hop UTF-8 | ||
+ | Except for the hop on EFNet, who uses UTF-8 | ||
+ | |||
+ | /ENCODING irc.rusnet.com: | ||
+ | When I connect to irc.rusnet.com on port 6679, it uses KOI8-R | ||
+ | |||
+ | /ENCODING irc.rusnet.com: | ||
+ | When I connect to irc.rusnet.com on port 6667, it uses UTF-8 | ||
+ | |||
+ | =====Built In Rules===== | ||
+ | There are three built in encoding rules which you cannot delete and probably shouldn' | ||
+ | |||
+ | ^ Rule ^ Explanation ^ | ||
+ | | irc | Any non-utf8 message received from irc is assumed to be in this encoding (default: ISO-8859-1) | | ||
+ | | console | The encoding EPIC thinks you are using at the console (default: set from your locale) | | ||
+ | | scripts | Any non-utf8 script you [[load]] is assumed to be this encoding (default: CP437) | | ||
+ | |||
+ | =====History===== | ||
+ | The /ENCODING command first appeared in EPIC5-1.1.8 | ||
encoding.txt · Last modified: 2014/04/05 16:30 by 127.0.0.1