Celery worker's log contains question marks (???) instead of correct unicode characters
问题 I'm using Celery 3.1.18 with Python 2.7.8 on CentOS 6.5. In a Celery task module, I have the following code: # someapp/tasks.py from celery import shared_task from celery.utils.log import get_task_logger logger = get_task_logger(__name__) @shared_task() def foo(): logger.info('Test output: %s', u"测试中") I use the initd script here to run a Celery worker. Also I put the following settings in /etc/default/celeryd : CELERYD_NODES="bar" # %N will be replaced with the first part of the nodename.