Need to know the charset of the browser from which the request is coming

Discussion in 'Perl' started by mohiddinb, Sep 18, 2007.

  1. mohiddinb

    mohiddinb New Member

    Joined:
    Sep 18, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Hi all,

    I need to know the charset of the browser from which the request is coming for encoding pupose.
    I have tried things by getting them in the HTTP request but there i am getting only the accepted charsets,that is set of encodings like (utf-8,shift-jis,iso-8859-1) like this

    but i need to know exactly what is the charset of the brower so that i can decode them in to the required format before showing the responce

    I am very thank ful if any body helps me in this and Thanks in Advance.

    Mohiddin.
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    You may send a response to the browser in any of its accepted charsets, it'll automatically switch to the response charset if supported, and you know which charset is supported! ;-)
     
  3. mohiddinb

    mohiddinb New Member

    Joined:
    Sep 18, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Thank you Pradeep,

    But it may not work for this situation how about i use cgi for this but i tried it but unable to find a way for this i am very great ful if u can suggest me in that.


    Thanks,
    Mohiddin
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice