当前位置:网站首页>CDH6 Hue to open a "ASCII" codec can 't encode characters
CDH6 Hue to open a "ASCII" codec can 't encode characters
2022-08-01 23:37:00 【I'm going to use code to confess to the girl I like】
'ascii' codec can't encode characters in position 8-15: ordinal not in range(128)

He said ascii (US encoding), can't compile a certain encoding, he doesn't know the encoding
So, let's change it to utf-8 encoding
cd /opt/cloudera/parcels/CDH/lib/hue/build/env/lib/python2.7/site-packages/
Add a configuration file
vi sitecustomize.py
The content is as follows
#encoding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
Restart hue

No error reported

边栏推荐
猜你喜欢
随机推荐
Additional Features for Scripting
软技能之UML图
6132. All the elements in the array is equal to zero - quick sort method
Calculate the angle of a line defined by two points
A brief analysis of mobile APP security testing in software testing, shared by a third-party software testing agency in Beijing
color transparency parameter
Avoid , ,
, and tags测试岗月薪5-9k,如何实现涨薪到25k?
Is TCP reliable?Why?
When using DocumentFragments add a large number of elements
Department project source code sharing
Quartus uses tcl files to quickly configure pins
数据机构---第五章树与二叉树---二叉树的概念---应用题
云原生DevOps环境搭建
论文理解【RL - Exp Replay】—— Experience Replay with Likelihood-free Importance Weights
problem solved
斜堆、、、
Check if point is inside rectangle
What is CICD excuse me
How to better understand and do a good job?








