Strange issues with encoding.

Discussion in 'ASP.NET 2.0' started by shimon, Jul 17, 2006.

  1. I creating simple page in Russian - just text but page uses Master.
    It worked fine on my machine but after I published it here on my account paged showed up in some unknown encoding (that I can't decode) and is totally unreadable.

    I started to play arrount with web.config globalization tag - setting fileEncoding and responseEncoding to Russian but it didn't get better (some setting displayed Chineese).

    Finanlly I decided to put the text in set of Labels, generated local resource file and it worked (looked ugly a bit since I didn't want to put every other work in separate Label).
    I just totally don't undestand why can't I just write a page in Russian (or any other language for same reason) and get it work everywhere.
    Any suggestions?

    Thanks,
    Shimon
     
  2. The additional language packs are not installed on DiscountASP web servers. So I don't think that you'll be able to display non-Unicode characters embedded within the HTML file.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. So why if I use Localization it works?
    Thanks.
     
  4. I think if you use a resource file it encodes the unicode strings in UTF-8, so that's why it works.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page