The http_get_lang function retrieves the preferred language
setting from the browser. You can use this information to implement
automatic language selection for your embedded web pages.
The http_get_lang function is a system function that is in
the RL-TCPnet library. The prototype is defined in net_config.h.
Note
When a web browser requests a web page, it specifies the
preferred language in the HTTP header that is sent to the web
server. This information is processed by TCPnet and stored
internally.
You can set the language preference in Internet Explorer by
selecting Tools -> Internet Options -> Languages. In Mozilla
Firefox, you can set the language preference by selecting Tools
-> Options -> Content -> Languages.
Return Value
The http_get_lang function returns a pointer to the
language code, which is a null-terminated string.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.