You are here: Re: Country list with iso1366 codes and local country names « HTML « IT news, forums, messages
Re: Country list with iso1366 codes and local country names

Posted by Jukka K. Korpela on 11/25/42 11:31

Zyron wrote:

> Hi Neil!

I haven't seen Neil's response, but from what I see quoted, it looks
quite reasonable.

You are simply doing the wrong thing. Massive crossposting won't help
(followups now trimmed). Claiming that you know what you are doing won't
help either; you don't. And I don't mean just referring to the wrong
standard in the Subject line.

>>In fact you're *not* about to finish this. You're just about to dive
>>into a deep, brown-water filled hole. The reason is that IP address
>>blocks are regularly reallocated, and there's no authoritative list of
>>IPs. In addition, providers like AOL regularly report as USA IPs,
>>though they *can* be in the UK, Europe, Australasia or elsewhere.
>
> Well, I will have to agree with you that it is far from complete,

It is not far from nonsense.

> The database I have chosen to use is: http://hostip.info/
> which contain city information as well.

Do you think you can guess my city from my IP address? You're wrong, and
besides, you will probably get just a proxy address.

> But there are problems with international characters in the city names,
> and only USA is divided into regions.

_Your_ problem is that you are trying to achieve something completely
pointless (telling a person where she is from, as if she didn't know
better) in a wrong way.

If you are going to _use_ the geographic information for something, then
you need to _ask_ it from the user. Have do accomplished that? Please
come back when you have. Then we can discuss whether it would make sense
to try and find out some probably useful defaults.

> I have a solution in sight for most problems, except a complete list of
> country names in local language.
> So instead of writing Norway, it should say Norge, and instead of
> Germany, it should say Deutschland.

I could tell you where you can find the most reliable information on
such matters, but then I would have to killfile you, since you would use
it for something absurd.

>>Can I save you some trouble here, as I've gone round this loop for my
>>videochat site. You actually want to look at the browser's reported
>>i18n language code not the IP address. In general this is set by the
>>users OS, which is (in general) set correctly by the user.
- -
> Myself I am from Norway, but use an English Windows like many other
> Norwegians. So that method would not help in my case.

The principle of looking at the "i18n language code" (that is, the
Accept-Language header in HTTP) is right. The practice fails, for more
reasons than I care to list down. But this does not mean that you should
use some absurd methods for guessing the language.

>>And finally : ***what does this have to do with XML*** which is the
>>subject of this newsgroup ?
>
> Now that is a good question.

The point is that you crossposted pointlessly. As so often, _none_ of
the groups was the right one.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация