UnicodeEncodeError: 'charmap' codec can't encode cha

Hi,
Am trying to run a program, while running it with IDLE it works fine no errors, but when running with visual studio I keep getting the error below, any ideas??
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 0-49: character maps to