I am developing a bilangual website where users have choice to select some pre-determined languages. Right now, I am using, but I am not sure if this is a good idea. If user does not want to use cookie, then he/she won't be able to select his desired language but has to use a default language set up by me.
But UTF-8 is a character set, not a locale. My browser also sends:
These are different things. I use English as my language and that can be represented in UTF-8 just fine. But so can French, Spanish and so on. Indeed, if you're using UTF-8 you'll be able to represent alot of languages.
Originally posted by orbitz hi stdunbar,
That is a good idea. However, my website uses unicode(utf-8) as charset. Therefore, any setting on the user's browser encoding will be change to utf-8 once they visit my website.
I am still very curious how to determine what language a user has selected
Do you mean an ASP/.NET Session? If so then session follows the same rules as a cookie. If the user does not allow cookies, the session will not work either. I personally do not like sessions because they keep info on the persons desktop and on the server which takes up server resources.
However, the session is more secured then the cookie, but in your case it does not matter.