Open laruence opened 4 years ago
With a custom osc52 script like https://github.com/laruence/stashes/blob/master/osc52.php
it works fine if the copied string is ascii charaters , but it can not works with utf-8 strings.
echo “中国” | osc52.php
blink shows a clipboard copy icon, which should mean it copied successfully,
but with cmd+v I get:
ä¸å½
which are:
0000000: c3a4 c2b8 c2ad c3a5 c29b c2bd 0a
it looks like blink take the osc52 base64 utf8 encoded string as latin1 encoded..
Interesting. I confirmed this with another OSC 52 script (“yank”).
With a custom osc52 script like https://github.com/laruence/stashes/blob/master/osc52.php
it works fine if the copied string is ascii charaters , but it can not works with utf-8 strings.
blink shows a clipboard copy icon, which should mean it copied successfully,
but with cmd+v I get:
which are:
it looks like blink take the osc52 base64 utf8 encoded string as latin1 encoded..