开发者

What country codes are these?

开发者 https://www.devze.com 2023-01-04 01:30 出处:网络
i have some existing code, and i wonder what kind of country codes they are? Are the somehow mappable to codes somewhere in the .NET framework?

i have some existing code, and i wonder what kind of country codes they are? Are the somehow mappable to codes somewhere in the .NET framework?

        <option value="4">Albania</option>
        <option value="7">Andorra</option>
        <option value="21">Anguilla</option>
        <option value="1">Antigua And Barbuda</option>

        <option value="23">Argentina</option>
        <option value="59">Aruba</option>
        <option value="66">Australia</option>
        开发者_Go百科<option value="390">Austria</option>
        <option value="463">Bahamas</option>
        <option value="477">Bahrain</option>

        <option value="479">Barbados</option>
        <option value="491">Belarus</option>
        <option value="493">Belgium</option>
        <option value="525">Belize</option>
        <option value="529">Bolivia</option>
        <option value="541">Bosnia Herzegovina</option>


I suspect those codes represent an arbitrary key in a database somewhere, not a standard country code.

http://countrycode.org/

Ian


Extract the content from this table: http://countrycode.org/, perhaps storing it as a comma delimited file. Then, in your application, look up the code associated with the country. Note: the copyright on the table is for personal noncommercial use only. http://countrycode.org/copyright

0

精彩评论

暂无评论...
验证码 换一张
取 消