UnicodeEncodeError: 'ascii' codec can't encode characters in position 160-161: ordinal not in range(128)

113 views
Skip to first unread message

bruce

unread,
Sep 22, 2016, 5:54:27 AM9/22/16
to Hue-Users
version: 3.11.0

When i run this sql : "SELECT '你好' FROM dual", throw the error!


bruce

unread,
Sep 22, 2016, 5:56:08 AM9/22/16
to Hue-Users
log:

[22/Sep/2016 17:22:36 +0800] decorators   ERROR    Error running <function get_logs at 0x7f4778da0500>

Traceback (most recent call last):

  File "/data/program/Hue-wc-bi/hue-3.11.0/desktop/libs/notebook/src/notebook/decorators.py", line 81, in decorator

    return func(*args, **kwargs)

  File "/data/program/Hue-wc-bi/hue-3.11.0/desktop/libs/notebook/src/notebook/api.py", line 276, in get_logs

    full_log = str(request.POST.get('full_log', ''))

UnicodeEncodeError: 'ascii' codec can't encode characters in position 160-161: ordinal not in range(128)


在 2016年9月22日星期四 UTC+8下午5:54:27,bruce写道:

Jenny Kim

unread,
Sep 22, 2016, 11:48:49 AM9/22/16
to bruce, Hue-Users
Hi there this should be be fixed in master as of this commit: https://github.com/cloudera/hue/commit/4bce9923bf7201fac3adf8ff89da0a448de70d19

--
You received this message because you are subscribed to the Google Groups "Hue-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+unsubscribe@cloudera.org.



--
Jenny Kim
Software Engineer on Hue
Cloudera

bruce

unread,
Sep 22, 2016, 10:33:39 PM9/22/16
to Hue-Users, brucet...@gmail.com
thx

在 2016年9月22日星期四 UTC+8下午11:48:49,Jenny Kim写道:
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.
Reply all
Reply to author
Forward
0 new messages