locked
How to display turkish characters on aspx page? RRS feed

  • Question

  • User-1258590832 posted

    Hi *,

    I´m just trying to get a simple .aspx page to display turkish characters.

    On the same server it worked fine in a .asp file:

    <% @CODEPAGE = 1254 %>
    <html>
    <head>
    <title>Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9" />
    </head>
    <body>
    HOŞGELDINIZ
    </body>
    </html>
     But when I use a .aspx file nothing seems to work. The 'Ş' is always displayed as a '?'
     What do I have to do to make it work?
     Sorry for my bad english by the way. :)
    Marc
     
    Thursday, August 9, 2007 4:53 AM

All replies

  • User-590788913 posted

    Instead of ISO-8859-9, declare UTF-8: <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

    Thursday, August 9, 2007 6:27 AM
  • User-1217497702 posted

    Possible solution to this problem is proper configuration of encoding settings of your browser.

    For example in internet explorer View -> Encoding -> Unicode (UTF-8)

    Thursday, August 9, 2007 6:37 AM
  • User-1258590832 posted

    Well, it works fine with utf-8 as charset and skript file also saved as utf-8.

    But only when I have the turkish words in my source code. Might be a mySQL problem.

     

    Thursday, August 9, 2007 7:07 AM