Search code examples
javascriptnode.jsexpresspug

UTF-8 characters in nodejs


I want to use turkish charecters in my project but Turkish characters look like

My Jade layout code like that

doctype html
html
    head
        meta(charset="UTF-8")
        meta(http-equiv="Content-Type",content="text/html;charset=iso-8859-9")
        meta(http-equiv="Content-Type",content="text/html;charset=windows-1254")
        meta(http-equiv="Content-Type",content="text/html;charset=x-mac-turkish")
        meta(name='viewport', content='width=device-width, initial-scale=1.0')

Why I can not make this ?


Solution

  • change your file to UTF-8 encoding ) – KoIIIeY For WebStorm users, you have come up with this problem when you select the URL option in the lower left or right corner and rebuild UTF-8 or whatever you want.