Undertake means "try to perform", especially in the sense of starting something new or different. Encounter means "to meet". I encountered my friend unexpectedly on the way to the shop.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.