Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   Need to know the charset of the browser from which the request is coming (http://www.go4expert.com/forums/charset-browser-request-coming-t6403/)

mohiddinb 18Sep2007 13:02

Need to know the charset of the browser from which the request is coming
 
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.

pradeep 18Sep2007 17:29

Re: Need to know the charset of the browser from which the request is coming
 
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! ;-)

mohiddinb 21Sep2007 10:13

Re: Need to know the charset of the browser from which the request is coming
 
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


All times are GMT +5.5. The time now is 17:28.