Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Page Encoding

Page Encoding

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John Gathogo
    wrote on last edited by
    #1

    When I try to browse a page on a site am creating on my computer using localhost i.e. http://localhost/MySite/Login.aspx, the browser returns some un-intelligible (to me) output which from its form looks pretty much like some error message. When I right-click on the page and check Encoding it is set to "Chinese Simplified (GB2312)" yet I did not set it thus. When I try to browse using 127.0.0.1 i.e. http://127.0.0.1/MySite/Login.aspx the login page loads okay. What could the problem be? I previously suffered a virus attack but I managed to remove the virus successfully.

    S L 2 Replies Last reply
    0
    • J John Gathogo

      When I try to browse a page on a site am creating on my computer using localhost i.e. http://localhost/MySite/Login.aspx, the browser returns some un-intelligible (to me) output which from its form looks pretty much like some error message. When I right-click on the page and check Encoding it is set to "Chinese Simplified (GB2312)" yet I did not set it thus. When I try to browse using 127.0.0.1 i.e. http://127.0.0.1/MySite/Login.aspx the login page loads okay. What could the problem be? I previously suffered a virus attack but I managed to remove the virus successfully.

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      i think you are working with .net 1.1 ?

      Thanks and Regards Sandeep

      1 Reply Last reply
      0
      • J John Gathogo

        When I try to browse a page on a site am creating on my computer using localhost i.e. http://localhost/MySite/Login.aspx, the browser returns some un-intelligible (to me) output which from its form looks pretty much like some error message. When I right-click on the page and check Encoding it is set to "Chinese Simplified (GB2312)" yet I did not set it thus. When I try to browse using 127.0.0.1 i.e. http://127.0.0.1/MySite/Login.aspx the login page loads okay. What could the problem be? I previously suffered a virus attack but I managed to remove the virus successfully.

        L Offline
        L Offline
        luckyve
        wrote on last edited by
        #3

        John Gathogo wrote:

        When I right-click on the page and check Encoding it is set to "Chinese Simplified (GB2312)"

        If its about encoding,you should do this : right click on your form to access the " document properties " then change the charset to " unicode utf8 " ... or you can also save your pages as ( "save as " ) unicode utf8 by clicking the little arrow on the "save" button whiling saving your page ... if you have any problems please tell ...

        J 2 Replies Last reply
        0
        • L luckyve

          John Gathogo wrote:

          When I right-click on the page and check Encoding it is set to "Chinese Simplified (GB2312)"

          If its about encoding,you should do this : right click on your form to access the " document properties " then change the charset to " unicode utf8 " ... or you can also save your pages as ( "save as " ) unicode utf8 by clicking the little arrow on the "save" button whiling saving your page ... if you have any problems please tell ...

          J Offline
          J Offline
          John Gathogo
          wrote on last edited by
          #4

          Problem may be bigger than that since it is not just the site am creating. I can't use http://localhost for anything on my computer. I have to use http://IPADDRESS

          1 Reply Last reply
          0
          • L luckyve

            John Gathogo wrote:

            When I right-click on the page and check Encoding it is set to "Chinese Simplified (GB2312)"

            If its about encoding,you should do this : right click on your form to access the " document properties " then change the charset to " unicode utf8 " ... or you can also save your pages as ( "save as " ) unicode utf8 by clicking the little arrow on the "save" button whiling saving your page ... if you have any problems please tell ...

            J Offline
            J Offline
            John Gathogo
            wrote on last edited by
            #5

            I figured it all The content of the host file on my computer had been modified to: The file is usu. found in :/WINDOWS/system32/drivers/etc/hosts. 60.190.223.106 localhost 60.190.223.106 www.4199.com 60.190.223.106 www.9505.com 60.190.223.106 www.huoche.com.cn 60.190.223.106 www.lieche.cn 60.190.223.106 www.piao.com.cn 60.190.223.106 train.hepost.com 60.190.223.106 www.huochepiao.com A typical host file should take the following form: # Copyright © 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost Add I believe this is the culprit: Trojan.Qhosts.B is a Trojan horse that modifies the hosts file in order to redirect users to incorrect IP addresses when lookups are performed for eBay-related domains.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups