mIRC Home    About    Download    Register    News    Help

Print Thread
#142575 18/02/06 04:51 PM
Joined: Apr 2003
Posts: 4
C
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Apr 2003
Posts: 4
Wasn't sure where to post this. It seems that $cb is not unicode-aware, or perheps im using it wrong.
I have a small alias mapped to a hotkey, that displays "now playing" information from foobar2000 if its in the clipboard (see script).
I've asked the program's authors and the program is unicode aware, and is also copying unicode formatted text to the clipboard.

If i use $cb, $isutf returns 1 and displays herbew chars as question marks. If i paste the contents to, lets say, the editbox - hebrew is displayed fine and $isutf returns 2 for it.
Quote:

;; foobar beta display
alias displayfoobar {
if (foobar2000* iswm $cb(1)) {
if ($1 == echo) { echo -a $cb(1) }
else { describe $active $cb(1) }
}
}

Last edited by Chaosblade; 18/02/06 04:55 PM.
#142576 18/02/06 07:15 PM
Joined: Feb 2003
Posts: 372
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2003
Posts: 372
But isn't Unicode text in Windows generally UTF-16 and Unicode text in mIRC UTF-8? If that's the case, then that might be the problem.

#142577 23/02/06 07:47 PM
Joined: Apr 2003
Posts: 4
C
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Apr 2003
Posts: 4
I'm pretty sure the source program generates utf-8 encoded strings.


Link Copied to Clipboard