Iphone detect Region Format

I want to to deliver different iTunes buy links to a user depending on where there Region Format is set (in general settings). Is there a way to detect that and then deliver a separate database to each users region?

Thanks for the help.

GS.

-------------Problems Reply------------

Assuming this is a web-based program, not Cocoa, the HTTP Accept-Language header appears to be all you've got to work with. Mobile Safari provides no information about Region Format, only Language.

This method, as well as a Region Format-based one, is flawed; more important is which iTunes Store the user has selected (the iTunes setting is transferred to the iPhone). This setting is independent of geographical location, Region Format and Language. You give the user a link to the wrong store, and it might well not work.

It shouldn't matter for free content, but I've had this problem myself with non-free content, as I often switch between the UK, US and German iTunes Stores (I prefer UK/US for podcasts, but can only buy from the German one).

Category:format Views:0 Time:2009-09-05

Related post

  • Date format in iPhone 4 app not changed when changing Region Format in Settings 2011-01-31

    Changing the region format on an iPhone 4 does not change the date and number format in my app until the iPhone is switched off and on again (or the app is terrminated in another way). Is there a way to detect Region Format changes in UIApplicationDe

  • Persisting Currency format in Cocoa on a device that so easily could change Region Format 2009-06-30

    I'm storing my currency values in NSDecimalNumbers (as recommended in multiple other threads on this forum) and using an NSNumberFormatter to display them correctly and handle the text input. All good! However, when I change the Region Format under i

  • How to detect image format in a stream 2008-11-19

    This question already has an answer here: Determine file type of an image 6 answers I need to detect Image format to save a image like image1.jpg, image2.gif, but i only have a stream, and i do not know the image format(gif, jpeg, png, etc) Is there

  • NSDateFormatter with region format 2009-09-08

    I use this code to process a date string coming in from a json feed: NSDateFormatter * formatter = [[NSDateFormatter alloc] init]; [formatter setDateStyle: NSDateFormatterLongStyle]; [formatter setFormatterBehavior: NSDateFormatterBehavior10_4]; [for

  • How does one set text of two labels with two different cultural/region format options? 2009-12-02

    How does one set text of two labels with two different cultural/region format options? For first label to be ar-EG : Arabic - Egypt and second one to be en-US : English - United States ? This to be done for Number/Date/Time/Currency formats. --------

  • SSRS regional format running inside Sharepoint 2010-07-08

    We have SSRS running in integration mode inside of sharepoint. When developing SSRS reports we are able to set the date and number formats to recognize regional settings and format appropriately. But when the report is deployed to SSRS the regional f

  • What's the best way to detect date formats in user submitted data? 2010-07-17

    I'm reading csv data uploaded by users in my Ruby on Rails app. When a user specifies that a particular column has dates(or times), I want to be able to automatically detect the format. This means it can be in American or British formats (any of dd/m

  • Is it possible to detect file format and encoding of file using batch files? 2011-01-06

    Is it possible to detect file format and encoding of file using batch files? And if a particular file is not of intended format, throw an error? --------------Solutions------------- As a *nix guy, I'd want to jump for something more powerful than a b

  • UIDatePicker Exception when calling setDatePickerMode with Region Format set to Taiwan Calendar to Japanese 2011-05-08

    We are using the standard UIDatePicker view to allow the user to set a countdown duration using the picker. The code is as follows: //in the header file UIDatePicker *pickerView; //in the implementation file, the error is thrown when this line execut

  • iphone app that formats texts like a word processor 2011-07-29

    Sorry for such a general questions, but I'm wondering if (and how) it is possible to write an iPhone App which formats a txt file on different pages - just like Microsoft Word would do in layout mode if you open a new document and paste a txt file. I

  • VBA (Excel 2007) how can I detect fill format of SeriesCollection? 2011-08-12

    how can I detect fill format of SeriesCollection? I know how to change it to solid > ActiveChart.SeriesCollection(1).Fill.Solid and I know how to change it to Gradient > ActiveChart.SeriesCollection(1).Fill.TwoColorGradient Style:=msoGradientHo

  • NSDate region format issue 2012-01-06

    NSDateFormatter *dtFormatter = [[NSDateFormatter alloc] init]; [dtFormatter setDateFormat:@"yyyy-MM-dd hh:mm a"]; NSDate *selectedDate = [[NSDate alloc] init]; selectedDate = [dtFormatter dateFromString:[NSString stringWithFormat:@"%@", [appDelegate.

  • Remove iPhone detection on Wordpress login page 2012-03-22

    I have wordpress a site with a customized login page, the problem is when I go to that page on my iPhone, it detects it as an iPhone and adds the viewport meta tag, which normally would be great but this particular login page I want to be viewed full

  • LIst of all region format 2012-04-03

    i'm be able to retrieve the region format of the user, ad example it_IT with this code [NSLocale currentLocale] objectForKey:NSLocaleIdentifier]; is it possible have the complete list of these identifier? (it_IT, de_DE, de_AT,....) Thanks -----------

  • Language Setting & Regional Format 2012-01-28

    Hi, I have set my Country/Region to Netherlands and my Phone language to English (US). I would like to set my Regional format to Netherlands as well (Date and time format as well as the Euro) but it will show the weekdays in Dutch despite the English

  • Windows Phone 8.1 Calendar app doesn't respect regional formatting settings 2012-05-24

    Windows Phone 8.1 has a new Calendar app. I have to say that I really miss the Agenda view that the old app had, but that's not my main issue. The main problem is: the Calendar app doesn't respect my phone's regional formatting settings. Some details

  • How to display non-Chinese date when Regional Format is set to Hong Kong 2012-06-21

    My phone language is set to English, my Country/Region is set to Hong Kong SAR, and my Regional Format is set to Hong Kong SAR. Being an English speaker in Hong Kong, these are the only options that make sense, but the Regional Format choice causes d

  • Calendar app does not take regional formatting into account 2012-11-22

    Hi there, not sure if this is a bug or a setting I've missed but I'm under the impression that the Calendar app does not properly take the regional format settings into account. It's no show-stopper but since I'm not used to it I get this mental cras

  • App Authenticator regional format and syncing problems 2013-09-25

    Hi guys, I wanna report a thing that was happening this day with the Microsoft's app Authenticator (two-factors verification). The app, who needs to sync with the Microsoft Servers to check time and date in order to generate correctly security codes,

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.182 (s). 11 q(s)