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.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.