Numeric Country Code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Susanne Christe

    Numeric Country Code

    Hi all,

    I know how to use System.Globaliz ation.RegionInf o, but I have problems
    to get the Numeric Country Code like this here:



    ISO-3166.

    Do somebody know how to get them in C#.

    Thx
    Susan

  • Tamir Khason

    #2
    Re: Numeric Country Code

    MSDN documentation states that, "The culture names follow the RFC 1766
    standard in the format "<languagecode2 >-<country/regioncode2>", where
    <languagecode 2> is a lowercase two-letter code derived from ISO 639-1 and
    <country/regioncode2> is an uppercase two-letter code derived from ISO
    3166."
    So use it :)

    --
    Tamir Khason
    You want dot.NET? Just ask:
    "Please, www.dotnet.us "


    "Susanne Christe" <atum@gmx.net > wrote in message
    news:40ed4050$1 @news.pironet-ndh.com...[color=blue]
    > Hi all,
    >
    > I know how to use System.Globaliz ation.RegionInf o, but I have problems
    > to get the Numeric Country Code like this here:
    >
    > http://www.atmajaya.ac.id/Weblinks/KodeNegara.html
    >
    > ISO-3166.
    >
    > Do somebody know how to get them in C#.
    >
    > Thx
    > Susan
    >[/color]


    Comment

    • Susanne Christe

      #3
      Re: Numeric Country Code

      Tamir Khason wrote:
      [color=blue]
      > MSDN documentation states that, "The culture names follow the RFC 1766
      > standard in the format "<languagecode2 >-<country/regioncode2>", where
      > <languagecode 2> is a lowercase two-letter code derived from ISO 639-1 and
      > <country/regioncode2> is an uppercase two-letter code derived from ISO
      > 3166."
      > So use it :)
      >[/color]

      The Problem ist, the numeric Country Code must be somewhere in the
      system too. If You are editing a user in ActiveDirectory , the numeric
      country code is afterwards as countryCode: 840 for US in the Directory.
      Where are those numbers comming from.

      All this infos about country code is in letter mode, i need the numeric
      attribute of a country from the system. And definitefly it is somwhere
      where no one was before ;) except of MS ;)

      thx
      Susan

      Comment

      • Tamir Khason

        #4
        Re: Numeric Country Code

        I think that the fastest way for you will be make table of convertion for
        letter and numeric attributes,
        sorry for this... :)

        --
        Tamir Khason
        You want dot.NET? Just ask:
        "Please, www.dotnet.us "


        "Susanne Christe" <atum@gmx.net > wrote in message
        news:40ed51bc@n ews.pironet-ndh.com...[color=blue]
        > Tamir Khason wrote:
        >[color=green]
        > > MSDN documentation states that, "The culture names follow the RFC 1766
        > > standard in the format "<languagecode2 >-<country/regioncode2>", where
        > > <languagecode 2> is a lowercase two-letter code derived from ISO 639-1[/color][/color]
        and[color=blue][color=green]
        > > <country/regioncode2> is an uppercase two-letter code derived from ISO
        > > 3166."
        > > So use it :)
        > >[/color]
        >
        > The Problem ist, the numeric Country Code must be somewhere in the
        > system too. If You are editing a user in ActiveDirectory , the numeric
        > country code is afterwards as countryCode: 840 for US in the Directory.
        > Where are those numbers comming from.
        >
        > All this infos about country code is in letter mode, i need the numeric
        > attribute of a country from the system. And definitefly it is somwhere
        > where no one was before ;) except of MS ;)
        >
        > thx
        > Susan
        >[/color]


        Comment

        • Susanne Christe

          #5
          Re: Numeric Country Code

          Tamir Khason wrote:
          [color=blue]
          > I think that the fastest way for you will be make table of convertion for
          > letter and numeric attributes,
          > sorry for this... :)
          >[/color]
          Hi Tamir, you dont need to be sorry for this.

          But I am asking me, do we need to invent the wheel all the time new, if
          the solution must lie hidden in the system. All the people editing
          ActiveDirectory with apps, do they make every time this iso tables new?
          This dont make any sense, and still worse, I dont find ANY clue on the
          net, and people are fighting with this every day, and working around and
          around and around ;)

          Thank You very much and have a nice day. :)

          thx
          susan

          Comment

          Working...