473,387 Members | 1,573 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,387 software developers and data experts.

Detecting the locale of the user?

Hi all,

In a web application, is there a way to detect the locale of the user (for
example, by sniffing some info off the navigator) and using that locale to
display the information on the site to the user?

Any information regarding how to do this would be greatly appreciated.

Eric.
Nov 18 '05 #1
2 1958
There must be a way, because the tracking service I use gives city and state info, but not sure how
they are doing it.

George
"Eric Caron" <ec****@nospam.quebecaffaires.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi all,

In a web application, is there a way to detect the locale of the user (for
example, by sniffing some info off the navigator) and using that locale to
display the information on the site to the user?

Any information regarding how to do this would be greatly appreciated.

Eric.

Nov 18 '05 #2
I suspect they are using Javascript to grab the Hostname, and then, somehow, they break that down
into a geographic location. By looking at the Hostname, sometimes it is fairly obvious where they
are from, but with others, it is very cryptic.

George

"Eric Caron" <ec****@nospam.quebecaffaires.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi all,

In a web application, is there a way to detect the locale of the user (for
example, by sniffing some info off the navigator) and using that locale to
display the information on the site to the user?

Any information regarding how to do this would be greatly appreciated.

Eric.



Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: H | last post by:
Hi All, Is it possible to detect a users regional settings, in particular - Currency? Thanks! Hellen.
0
by: MT | last post by:
I am trying to figure out the best way to prevent problems when some of our international customers start using our .NET assembly (in the form of a DLL). Basically, our DLL relies on the fact...
0
by: Eric Caron | last post by:
Hi all, In a web application, is there a way to detect the locale of the user (for example, by sniffing some info off the navigator) and using that locale to display the information on the site...
0
by: Jaime Casanova | last post by:
Hi all, i want to develop a feature in a c program and need some help... the context: a problem that comes over an over with postgresql database is that when you initialize the cluster you...
7
by: Peter Jansson | last post by:
Dear group, I have been struggling to get a simple program for inserting and extracting std::tm objects to/from streams to work. The code below tries to read a std::tm object from a...
79
by: VK | last post by:
I wandering about the common proctice of some UA's producers to spoof the UA string to pretend to be another browser (most often IE). Shouldn't it be considered as a trademark violation of the...
10
by: David Thielen | last post by:
Hi; I have help html pages for each page of my ASP.NET webapp. So for the page datasource.aspx, I have help\datasource.htm. Bu what I want when the hyperlink is clicked, for it to look for the...
33
by: Simon Brooke | last post by:
I'm working on a system which uses Google maps. I want the user to see a map of more or less where (s)he is in the world when (s)he first comes to the system. So the obvious thing seemed to be to...
24
by: Donn Ingle | last post by:
Hello, I hope someone can illuminate this situation for me. Here's the nutshell: 1. On start I call locale.setlocale(locale.LC_ALL,''), the getlocale. 2. If this returns "C" or anything...
44
by: Pilcrow | last post by:
Is there a way that a proram can detect whether it is operating in an ASCII or an EBCDIC environment?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.