Hi Andrés,
Aha, you have discovered a hidden PixInsight feature. Now if someone comes and says that those strings have a coherent meaning in Chinese, I drop everything!
![laughing :D](http://pixinsight.com/forum/Smileys/default/laughing.gif)
Seriously now, this works correctly on both Linux and Mac OS X. So it must be a Windows issue (I don't have a Windows machine here to test right now). Probably one of the typical issues with Unicode on Windows (or another realization of MS's 'love' for open standards) which I've overlooked.
Anyway, this isn't a practical problem because there's no reason to use %s in a script. JavaScript has the string concatenation operator (+), so your code is better written as:
var test2 = "test2";
console.writeln( "test1: " + test2 );However, you could try the following:
console.writeln(format("test1: %ls", "test1"));
var test2 = "test2";
console.writeln(format("test2: %ls", test2));(note the %ls format specifiers) just to check if it's a UTF16 related issue.