当前位置:网站首页>CDH6的Hue打开出现‘ascii‘ codec can‘t encode characters
CDH6的Hue打开出现‘ascii‘ codec can‘t encode characters
2022-08-01 23:26:00 【我要用代码向我喜欢的女孩表白】
'ascii' codec can't encode characters in position 8-15: ordinal not in range(128)

他说ascii(美国的编码),不能编译某个 ,他不认识的编码
所以说,我们改成utf-8编码就行
cd /opt/cloudera/parcels/CDH/lib/hue/build/env/lib/python2.7/site-packages/
添加一个配置文件
vi sitecustomize.py
内容如下
#encoding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
重启hue

不报错了

边栏推荐
猜你喜欢
随机推荐
仿牛客网项目第三章:开发社区核心功能(详细步骤和思路)
Check if point is inside rectangle
Getting started with IDEA is enough to read this article
ROS2初级知识(8):Launching启动多节点
避免使用 <b>、<i>、<s> 和 <u> 标签
vscode hide menu bar
perspectiveTransform warpPerspective getPerspectiveTransform findHomography
excel vertical to horizontal
sys_kill system call
CF1705D Mark and Lightbulbs
excel remove all carriage return from a cell
npm npm
excel cell contian two words, seperated by a slash
vscode hide menu bar
Chapter 11 Working with Dates and Times
欧拉路径与欧拉回路
论文理解【RL - Exp Replay】—— Experience Replay with Likelihood-free Importance Weights
System availability: 3 9s, 4 9s in SRE's mouth... What is it?
excel vertical to horizontal
How to better understand and do a good job?









