Multibyte characters in tests

Here is what I used in C:
https://forum.codingame.com/t/snake-encoding-community-puzzle/1423/8?u=plopx

And in Javascript:

function fromUTF8(s) {
    return decodeURIComponent(escape(s));
}
var line = fromUTF8(readline());
2 Likes