html included in aspx page not showing japanese and chinese character properly

Last post 05-15-2008 6:44 AM by Sonali Das. 1 replies.

Sort Posts:

  • html included in aspx page not showing japanese and chinese character properly

    05-15-2008, 5:27 AM
    • Loading...
    • Sonali Das
    • Joined on 08-29-2007, 6:44 AM
    • Posts 21

    Hi,

    I have developed one ASP.Net 2.0 web application. There are some standalone pages like header.aspx(no code behind) in which english, chinese and japanese html page are included based on language information as following:

    <% if lang="en"{%>

    <!--#include virtual="header_en.html"-->

    <%} if(lang="jp"){%>

    <!--#include virtual="header_jp.html"-->%>

    These htmls have chinese japanese characters,but not showing properly when it is browsed independently or through aspx pages. I have included globalization as "utf-8" in web.config and in the header.aspx <!DOCTYPE > declaration is there and <meta http-equiv="Content-Type" content="text/html;charset="utf-8"/>

    Can anyone please help me out what can be the possible reason for this? It is urgent.

    NOTE: this is only for a particular application is occuring, but in other application just <#include > is working fine.

     

     

    Thanks,
    Sonali
  • Re: html included in aspx page not showing japanese and chinese character properly

    05-15-2008, 6:44 AM
    Answer
    • Loading...
    • Sonali Das
    • Joined on 08-29-2007, 6:44 AM
    • Posts 21
    Actually in this scenario, header.aspx was being included from some other aspx page and then the header.aspx page included the language specific htmls. So, upto that level the encoding was not effective i guess. So, in the web.config file , in the <globalization> tag with requestEncoding and responseEcoding fileEcnoding="utf-8" also included and after that page header is displaying fine.
    Thanks,
    Sonali
Page 1 of 1 (2 items)