Set specific culture by region code? RRS feed

  • Question

  • User816832449 posted


    I need to set the specific culture using only the region code. 

    E.G. using region code JP (Japan), set the Culture to ja-JP

    This question is not about using browser language or automatically setting the culture, I specifically need to set it using the region code.

    I am actually trying to follow this tutorial http://www.sitepoint.com/geoip-targetting/, however, unless I am going crazy, the following could never work! 

    CountryLookup cl = new CountryLookup(Server.MapPath("GeoIP.dat"));

    strCulture = cl.lookupCountryCode(Request.UserHostAddress); //Sets the region code

    CultureInfo userCulture = new CultureInfo.CreateSpecificCulture(strCulture); //Tries to create a culture by region code???!!

    Friday, October 28, 2011 11:48 AM

All replies

  • User1519636740 posted


    it is a third party issue, leave a comment in that tutorial.

    Friday, November 4, 2011 4:28 AM