encap means something is hardened against accidental or incidental modification and wrapped up in a protective layer (class/struct in c++, or an 'object' usually. There are some other things that have these concepts like a namespace or file scoped static but for now consider them to be class members). A public class variable is not considered (fully) encapsulated. A protected or private variable with getters and setters is encapsulated: it can only be modified or read via controlled interfaces.
a global variable is the opposite of this idea -- anyone, anywhere can modify it without warning to the other things that use it.