mIRC Home    About    Download    Register    News    Help

Print Thread
#228358 19/12/10 11:35 PM
Joined: Jan 2008
Posts: 57
D
DeSync Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jan 2008
Posts: 57
Hi,

Is Ascii sheme changed with new branch?
Couse it shows some wierd signs when try some old number. For example: you can try //echo -s $chr(151) with 7.*

DeSync #228360 20/12/10 12:17 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
mIRC is now Unicode. That means that any characters that are not valid Unicode won't appear "correctly". However, every character that you might be trying to use is available in Unicode, but may have a different $chr() number. For example, $chr(151) should now be $chr(8212).

This should only affect characters from 129 through 255 if I remember correctly.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #228372 20/12/10 12:28 PM
Joined: Jan 2008
Posts: 57
D
DeSync Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jan 2008
Posts: 57
So it should be $calc(8212 - $calc(151-129)) and there is start of list. That number corespons to $chr(129) in old mirc, I guess.

DeSync #228381 20/12/10 07:21 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You'd have to check to see if the characters are in the same order or not. I have no idea. For example, even thought $chr(151) in ASCII is $chr(8212) in Unicode, that doesn't necessarily mean that $chr(150) in ASCII is $chr(8211) in Unicode. If they are in the same order, then you can use a calculation. If not, then you have to won't be able to use $calc().

Last edited by Riamus2; 20/12/10 07:22 PM.

Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard