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.
;; foobar beta display
alias displayfoobar {
if (foobar2000* iswm $cb(1)) {
if ($1 == echo) { echo -a $cb(1) }
else { describe $active $cb(1) }
}
}