I\'ve been trying to output as \'\\U0001f604\' instead of the smiley but it doesn\'t seem to work.
i tried
Just add
# -*- coding: UTF-8 -*-
into your code and you will be able to print Unicode characters