当前位置:网站首页>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
边栏推荐
- Calculate the distance between two points
- C#大型互联网平台管理框架源码:基于ASP.NET MVC+EF6+Bootstrap开发,支持多数据库
- Loading configuration of Nacos configuration center
- Building a cloud-native DevOps environment
- IDEA common plugins
- Calculate the angle of a line defined by two points
- TCP 可靠吗?为什么?
- 添加大量元素时使用 DocumentFragments
- Chapter 19 Tips and Traps: Common Goofs for Novices
- 仿牛客网项目第三章:开发社区核心功能(详细步骤和思路)
猜你喜欢
What is CICD excuse me
20220725资料更新
CDH6的Hue打开出现‘ascii‘ codec can‘t encode characters
请问什么是 CICD
技术分享 | 接口测试中如何使用Json 来进行数据交互 ?
C语言——分支语句和循环语句
Deep Learning Fundamentals - Numpy-based Recurrent Neural Network (RNN) implementation and backpropagation training
cdh6打开oozieWeb页面,Oozie web console is disabled.
Get piggy homestay (short-term rental) data
C language - branch statement and loop statement
随机推荐
Background project Express-Mysql-Vue3-TS-Pinia page layout-sidebar menu
FAST-LIO2代码解析(二)
PDF转Word有那么难吗?做一个文件转换器,都解决了
Nacos配置中心之加载配置
A brief analysis of mobile APP security testing in software testing, shared by a third-party software testing agency in Beijing
获取小猪民宿(短租)数据
UI自动化测试框架搭建-标记性能较差用例
Flink学习第四天——完成第一个Flink 流批一体案例
prim生成树
A. Doremy‘s IQ-- Codeforces Round #808 (Div. 1)
仿牛客网项目第三章:开发社区核心功能(详细步骤和思路)
软技能之UML图
chrome复制一张图片的base64数据
中职网络安全竞赛B7比赛部署流程
高效工作文档产出归类
20220725资料更新
Chapter 12 End-User Task As Shell Scripts
研发团队数字化转型实践
Getting started with IDEA is enough to read this article
npm npm