From WikiChip
$codepage Identifier - mIRC
< mirc‎ | identifiers

The $codepage identifier allows you to list all the available codepages and/or get informations about a given codepage.


Synopsis[edit]

$codepage(N/ID)

Parameters[edit]

  • N/ID - The Nth codepage to be returned, or 0 for the total number of codepage in the list, you can also pass an ID.


Note: first ID starts at 437 and only increases from that, while there's a total of only 58 codepages currently, and there should be no overlap given no new codepage are added.

Properties[edit]

Property Description
name Returns the name of the codepage
desc Returns the description of the codepage.
id Returns the ID of the codepage (default).

Examples[edit]

//var %a 1 | while ($codepage(%a)) { echo -sg $v1 -- $codepage(%a).name -- $codepage(%a).desc -- $codepage(%a).id  | inc %a }
  • 437 -- ibm437 -- OEM United States -- 437
  • 737 -- ibm737 -- OEM Greek -- 737
  • 775 -- ibm775 -- OEM Baltic -- 775
  • 850 -- ibm850 -- OEM Western European -- 850
  • 852 -- ibm852 -- OEM Central European -- 852
  • 855 -- ibm855 -- OEM Cyrillic -- 855
  • 857 -- ibm857 -- OEM Turkish -- 857
  • 858 -- ibm00858 -- OEM Multilingual -- 858
  • 860 -- ibm860 -- OEM Portuguese -- 860
  • 861 -- ibm861 -- OEM Icelandic -- 861
  • 862 -- dos-862 -- OEM Hebrew -- 862
  • 863 -- ibm863 -- OEM French Canadian -- 863
  • 864 -- ibm864 -- OEM Arabic -- 864
  • 865 -- ibm865 -- OEM Nordic -- 865
  • 866 -- cp866 -- OEM Russian -- 866
  • 869 -- ibm869 -- OEM Greek Modern -- 869
  • 874 -- windows-874 -- ANSI Thai -- 874
  • 932 -- shift_jis -- ANSI Japanese Shift-JIS -- 932
  • 936 -- gb2312 -- ANSI Chinese Simplified GB2312 -- 936
  • 949 -- ks_c_5601-1987 -- ANSI Korean Hangul -- 949
  • 950 -- big5 -- ANSI Chinese Traditional Big5 -- 950
  • 1250 -- windows-1250 -- ANSI Central European -- 1250
  • 1251 -- windows-1251 -- ANSI Cyrillic -- 1251
  • 1252 -- windows-1252 -- ANSI Western European -- 1252
  • 1253 -- windows-1253 -- ANSI Greek -- 1253
  • 1254 -- windows-1254 -- ANSI Turkish -- 1254
  • 1255 -- windows-1255 -- ANSI Hebrew -- 1255
  • 1256 -- windows-1256 -- ANSI Arabic -- 1256
  • 1257 -- windows-1257 -- ANSI Baltic -- 1257
  • 1258 -- windows-1258 -- ANSI Vietnamese -- 1258
  • 1361 -- johab -- Korean Johab -- 1361
  • 10000 -- macintosh -- MAC Roman -- 10000
  • 20866 -- koi8-r -- Russian KOI8-R -- 20866
  • 20932 -- euc-jp -- Japanese JIS X 0208/0212 -- 20932
  • 20936 -- x-cp20936 -- Chinese Simplified GB2312 -- 20936
  • 21866 -- koi8-u -- Ukrainian KOI8-U -- 21866
  • 28591 -- iso-8859-1 -- ISO Western European -- 28591
  • 28592 -- iso-8859-2 -- ISO Central European -- 28592
  • 28593 -- iso-8859-3 -- ISO South European -- 28593
  • 28594 -- iso-8859-4 -- ISO Baltic -- 28594
  • 28595 -- iso-8859-5 -- ISO Cyrillic -- 28595
  • 28596 -- iso-8859-6 -- ISO Arabic -- 28596
  • 28597 -- iso-8859-7 -- ISO Greek -- 28597
  • 28598 -- iso-8859-8 -- ISO Hebrew Visual -- 28598
  • 28599 -- iso-8859-9 -- ISO Turkish -- 28599
  • 28603 -- iso-8859-13 -- ISO Estonian -- 28603
  • 28605 -- iso-8859-15 -- ISO Latin-9 -- 28605
  • 38598 -- iso-8859-8-i -- ISO Hebrew Logical -- 38598
  • 50220 -- iso-2022-jp -- ISO Japanese JIS -- 50220
  • 50221 -- csiso2022jp -- ISO Japanese JIS Kana -- 50221
  • 50222 -- iso-2022-jp-sio -- ISO Japanese JIS X 0201 -- 50222
  • 50225 -- iso-2022-kr -- ISO Korean -- 50225
  • 50227 -- x-cp50227 -- ISO Chinese Simplified -- 50227
  • 50229 -- iso-2022-cn -- ISO Chinese Traditional -- 50229
  • 51949 -- euc-kr -- EUC Korean -- 51949
  • 52936 -- hz-gb-2312 -- Chinese Simplified HZ -- 52936
  • 54936 -- gb18030 -- Chinese Simplified GB18030 -- 54936
  • 65001 -- utf-8 -- Unicode UTF-8 -- 65001


Compatibility[edit]

Added: mIRC v7.69
Added on: 18 Jul 2022
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

v · d · e mIRC identifier list

$ $$, $, $0, $1-, $!, $&, $*, $+, $++, $?

A $abook, $abs, $acos, $active, $activecid, $activewid, $adate, $address, $addtok, $addtokcs, $agent, $agentname, $agentstat, $agentver, $alias, $and, $anick, $ansi2mirc, $aop, $appactive, $appstate, $asc, $asctime, $asin, $atan, $atan2, $auto, $avoice, $away, $awaymsg, $awaytime

B $banlist, $banmask, $base, $beta, $bfind, $bindip, $bitoff, $biton, $bits, $bnick, $bvar, $bytes

C $calc, $caller, $cancel, $cb, $cd, $ceil, $chan, $chanmodes, $channel, $chantypes, $chat, $chr, $cid, $clevel, $click, $cmdbox, $cmdline, $cnick, $color, $colour, $com, $comcall, $comchan, $comchar, $comerr, $compact, $compress, $comval, $cos, $cosh, $count, $countcs, $cr, $crc, $creq, $crlf, $ctime, $ctimer, $ctrlenter

D $date, $day, $daylight, $dbuh, $dbuw, $dccignore, $dccport, $dde, $ddename, $debug, $decode, $decompress, $deltok, $devent, $dialog, $did, $didreg, $didtok, $didwm, $dir, $disk, $dlevel, $dll, $dllcall, $dname, $dns, $donotdisturb, $dqwindow, $duration

E $ebeeps, $editbox, $email, $emailaddr, $encode, $envvar, $error, $eval, $evalnext, $event, $eventid, $eventparms, $exists, $exiting

F $false, $feof, $ferr, $fgetc, $file, $filename, $filtered, $find, $finddir, $finddirn, $findfile, $findfilen, $findtok, $findtokcs, $fline, $flinen, $floor, $font, $fopen, $fread, $fromeditbox, $fserv, $fserve, $fulladdress, $fulldate, $fullname, $fullscreen

G $get, $getdir, $getdot, $gettok, $gmt, $group

H $halted, $hash, $height, $hfile, $hfind, $hget, $highlight, $hmac $hmatch, $hnick, $host, $hotline, $hotlinepos, $hotlink, $hotp, $hregex, $hypot

I $iaddress, $ial, $ialchan, $ibl, $idle, $iel, $ifmatch, $ifmatch2, $ignore, $iif, $iil, $inellipse, $ini, $initopic, $inmidi, $inmode, $inmp3, $inpaste, $inpoly, $input, $inrect, $inroundrect, $insong, $insongpause, $instok, $int, $intersect, $inwave, $inwho, $ip, $iptype, $iql, $isadmin, $isalias, $isbit, $isdde, $isdir, $isfile, $isid, $islower, $istok, $istokcs, $isupper, $isutf

K $keychar, $keyrpt, $keyval, $knick

L $lactive, $lactivecid, $lactivewid, $left, $leftwin, $leftwincid, $leftwinwid, $len, $level, $lf, $line, $lines, $link, $lock, $locked, $lof, $log, $log10, $logdir, $logstamp, $logstampfmt, $longfn, $longip, $lower, $ltimer

M $maddress, $mask, $matchkey, $matchtok, $matchtokcs, $maxlenl, $maxlenm, $maxlens, $md5, $me, $menu, $menubar, $menucontext, $menutype, $mid, $mididir, $mircdir, $mircexe, $mircini, $mkfn, $mklogfn, $mknickfn, $mnick, $mode, $modefirst, $modelast, $modespl, $mouse, $mousecx, $mousecy, $mousedx, $mousedy, $mousekey, $mouselb, $mousex, $mousey, $mousewin, $mp3, $mp3dir, $msfile, $msgstamp, $msgtags

N $N, $naddress, $network, $newnick, $nhnick, $nick, $nickmode, $no, $nofile, $nopath, $nopnick, $noqt, $not, $notags, $notify, $null, $numeric, $numtok, $nvnick

O $ok, $online, $onlineserver, $onlinetotal $onpoly, $opnick, $or, $ord, $os

P $parmN, $parms, $parseline, $parsetype, $parseutf, $passivedcc, $pi, $pic, $play, $pnick, $portable, $portfree, $pos, $poscs, $prefix, $prop, $protect, $puttok

Q $qt, $query

R $r, $raddress, $rand, $rands, $rawbytes, $rawmsg, $read, $readini, $readn, $regbr, $regerrstr, $regex, $regml, $regmlex, $regsub, $regsubex, $remote, $remove, $removecs, $remtok, $remtokcs, $replace, $replacecs, $replacex, $replacexcs, $reptok, $reptokcs, $result, $rgb, $right, $rnick, $round

S $samepath, $scid, $scon, $script, $scriptdir, $scriptline, $sdir, $send, $server, $serverip, $servertarget, $sfile, $sha1, $sha256, $sha384, $sha512, $shortfn, $show, $signal, $sin, $sinh, $site, $sline, $snick, $snicks, $snotify, $sock, $sockbr, $sockerr, $sockname, $sorttok, $sorttokcs, $sound, $speak, $sqrt, $sreq, $ssl, $sslcertsha1, $sslcertsha256, $sslcertvalid, $ssldll, $ssllibdll, $sslready, $sslversion, $starting, $status, $str, $strip, $stripped, $style, $submenu, $switchbar, $sysdir

T $tan, $tanh, $target, $tempfn, $ticks, $time, $timeout, $timer, $timestamp, $timestampfmt, $timezone, $tip, $tips, $titlebar, $token, $toolbar, $topic, $totp, $treebar, $true, $trust

U $ulevel, $ulist, $unsafe, $upper, $uptime, $url, $usermode, $utfdecode, $utfencode

V $v1, $v2, $var, $vc, $vcmd, $vcmdstat, $vcmdver, $version, $vnick, $vol

W $wavedir, $wid, $width, $wildsite, $wildtok, $wildtokcs, $window, $wrap

X $xor

Y $yes

Z $zip

= =$nick