How to log unicode characters to the console in JavaScript?

后端 未结 3 1827
旧时难觅i
旧时难觅i 2021-01-17 17:21

I have a hungarian statement that I would like to log to the console like this:

console.log(\'Probléma a működésben.\');

But it prints the

3条回答
  •  迷失自我
    2021-01-17 18:16

    You can specify the encoding of your file by setting the charset attribute

    
    
                                     
                  
提交回复
热议问题