473,394 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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.
Sep 20 '07 #1
2 1283
numberwhun
3,509 Expert Mod 2GB
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.
Welcome to TSDN!!

Whenever you need to do ANYTHING, the first place you should go is to CPAN to search for a module to do your task.

If you go over there and search for "browser" it returns about 951 pages. Well, going through those, you will see many things related to browser. In one of the pages, I followed a link to HTTP::Headers which has mention of "content_encoding" which may be what you want, but cannot be sure without testing it.

Hopefully that is what you are looking for.

Regards,

Jeff
Sep 20 '07 #2
Welcome to TSDN!!

Whenever you need to do ANYTHING, the first place you should go is to CPAN to search for a module to do your task.

If you go over there and search for "browser" it returns about 951 pages. Well, going through those, you will see many things related to browser. In one of the pages, I followed a link to HTTP::Headers which has mention of "content_encoding" which may be what you want, but cannot be sure without testing it.

Hopefully that is what you are looking for.

Regards,

Jeff






Thank you Jeff

Thanks for your valuable suggestion,
But JEFF i think this encoding is different from the charsets,
But i guess can i get it by using the cgi module i tried but i was unable to find a way ,So if you know Please guide me and once again thanks for your reply.

Thanks,
Mohiddin.
Sep 21 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: CJ Oxx | last post by:
I have a problem with browser charset recognition when using PHP 4.1.2 (this is the PHP version which our hosting company provides). For charset recognition, I use the following meta-tag: <meta...
12
by: lawrence | last post by:
How do I get PHP to tell the server that when I echo text to the screen, I need for the text to be sent as UTF-8? How does Apache know the right encoding when all the text is being generated by...
25
by: Andrew Thompson | last post by:
I was recently loading an HTML editor so I could find the charcode of that particularly obscure character using the editor's 'insert special character' dialog. It occured to me there had to be...
35
by: The Bicycling Guitarist | last post by:
My web site has not been spidered by Googlebot since April 2003. The site in question is at www.TheBicyclingGuitarist.net/ I received much help from this NG and the stylesheets NG when updating the...
28
by: Xiaotian Sun | last post by:
I added the following line to the header of my html file <meta http-equiv="content-type" content="text/html; charset=utf-8"> hoping browsers will use UTF-8 encoding. But all browsers I tried...
7
by: Nathan Sokalski | last post by:
I want to make sure I am doing a browser detection that will work once IE7 is released. My current detection statement (written using VB.NET) is: If Me.Request.Browser.Browser.ToUpper() = "IE"...
2
by: vunet.us | last post by:
I translate my website to German and some ASCII characters are not translated by my browser. For example I see this: &#x00FC; I use charset: <meta http-equiv="Content-Type" content="text/html;...
51
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under...
2
by: Hiten | last post by:
Our application is created in C#, ASP.Net 2.0, SQL 2005; the session is managed in SQL server with ASPState. We often file below exception Error Details : Exception of type...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.