Search code examples
asp-classic

classic asp turkish characters not displayed


My website does not display Turkish characters when they come from the database.

Instead of the Turkish characters, question mark is displayed.

I already put charset=UTF-8, ISO-8859-9 and windows-1254 in the , and Response.Charset = "UTF-8" on the top of the page.

link to check it out


Solution

  • In addition to your output characterset you should also set your server-side codepage.

    You can set the code page to UTF-8 either
    - at the page directive :

    <%@ Language="VBSCRIPT" CODEPAGE="65001"%>
    

    - or using the Response object :

    <% 
    Response.CodePage = "utf-8"
    %>
    

    If this doesn't help either make sure you have saved your classic asp with UTF-8 encoding. (pending your editor)