You could enrol in a language class as an elective, or a series of electives, as part of your program. However there are many places in the world where English is widely spoken and, even throughout Asia, many University courses are conducted in English.
It is important to do your research before you go to ensure that you have enough language skills to be able to function independently in your chosen country.
Using just a few words in your host country’s language will make a huge difference in being accepted and getting around. So do some homework before you go, even if you expect English to be widely used. Simple things like ‘please’ and ‘thank you’ in the local language indicate some respect for your hosts.