This was working on 6.35, $cb(1,u) with é in the clipboard would properly return the two bytes 195 169, but it returns é on 7.51. $cb(N,u) always seems to return the same value as $cb(N) right now.
Also for convenience, it would be a good idea to extend $cb to allow something like $cb.utf or similar 'property' to get the utf8 encoded text of the full clipboard, otherwise we need to loop over $cb(N,u) and add utf8 encoded $crlf ourselves which isn't that cool.
Getting the length of the full clipboard would also be handy: $cb.len
Last edited by Wims; 31/10/17 09:41 PM.