@shared_task
def print_unicode(log_message=u'h\xe5\xe5\xae\u0192 valmuefr\xf8', print_message=u'hi\xf6\xe4\xfc\xdf'):
 logger.warning(log_message)
 print print_message

@ shared_task def print_unicode ( log_message = u'h\xe5\xe5\xae\u0192 valmuefr\xf8' , print_message = u'hi\xf6\xe4\xfc\xdf' ) : logger . warning ( log_message ) print print_message
task that both logs and print strings containing funny characters .