$codepage( FROM , TO , STRING ) snippet

Published  Jul 06, 2010
Updated  Jul 06, 2010
0  4

Description

Codepages in mIRC? Thats simple.
I used iconv (linux program) for create 125 codepages (6.4 MB)

Syntax (like in subject): $codepage(from,to,string)

Example: $codepage(cp1251,utf-8,$+($chr(242),$chr(229),$chr(241),$chr(242)))
Converts Cyrillic (codepage Windows-1251) word "теÑÑ‚" to utf-8 codepage.

Example alias:

alias cp_example {
  ; теÑÑ‚ (russian) = test (english)
  var %string = теÑÑ‚, %source = %string

  ; from UTF-8 to Windows-1251
  var %string = $codepage(utf-8,cp1251,%string)

  ; from Windows-1251 to KOI8-R
  var %string = $codepage(cp1251,koi8-r,%string)

  ; from KOI8-R to Windows-1251
  var %string = $codepage(koi8-r,cp1251,%string)

  ; from Windows-1251 to UTF-8
  var %string = $codepage(cp1251,utf-8,%string)

  ; Check
  echo -a Success, %source = %string yep? :)
}

Archive contains codepage.mrc - script/snippet, and codepage directory, with MORE codepages!
Enjoy. ;)

Download

Filename
Size
Date
Downloads
1.4 MB
Jul 06, 2010
61

Comments

Sign in to comment.
Feisu   -  Oct 04, 2010

So how to enable codepage in mirc 7.1? So it can display non UTF-8 char correctly

 Respond  
StonaJakey   -  Jul 06, 2010

why not? :P

 Respond  
Jethro   -  Jul 06, 2010

Why would you release a script that mainly works for the mIRC version that's still in the beta stage?

 Respond  
Spoofing   -  Jul 06, 2010

Oh.. small problem. ;)

Thats script works ONLY on mIRC >= 7.0
mirc.com/beta.html - if anybody don't know.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.