How to know a site's charset?

Discussion in 'C#' started by JJnacy, Jun 14, 2009.

  1. #1
    How to use ASP to inspect a site's head meta charset?

    example
    charset=ISO-8859-1
    charset=UTF-8
    charset=EUC
    charset=ISO
    and so on


    Thanks
     
    JJnacy, Jun 14, 2009 IP
  2. dopanel.com

    dopanel.com Peon

    Messages:
    93
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you mean using asp to detect other website's charset?
     
    dopanel.com, Jun 14, 2009 IP
  3. JJnacy

    JJnacy Peon

    Messages:
    448
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, please help.
     
    JJnacy, Jun 14, 2009 IP
  4. dopanel.com

    dopanel.com Peon

    Messages:
    93
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Using xmlhttp
    getting the html source from the url you want to check.
    Using regex to check if there has the charset meta and fetch the value of it.
     
    dopanel.com, Jun 14, 2009 IP