简体   繁体   English

Cassandra:'ascii'编解码器无法在位置218处编码字符u'\\ xe9':序数不在范围内(128)

[英]Cassandra : 'ascii' codec can't encode character u'\xe9' in position 218: ordinal not in range(128)

I have cqlsh on Ubuntu 16.04 and here's my version of cqlsh : 我在Ubuntu 16.04上有cqlsh,这是我的cqlsh版本:

[cqlsh 5.0.1 | Cassandra 3.10 | CQL spec 3.4.4 | Native protocol v4]

I can't create a keyspace and the error I get is this one : 我无法创建密钥空间,而我得到的错误是这个:

'ascii' codec can't encode character u'\xe9' in position 218: ordinal not in range(128)

How can I get it to work? 我如何使它工作?

I tried to log in with this command : 我尝试使用以下命令登录:

cqlsh 127.0.0.1 9042 -u cassandra -p cassandra --cqlversion="3.4.4" --encoding utf-8

but it didn't work. 但这没用。

Command to create a keyspace that I used : 创建我使用的键空间的命令:

CREATE KEYSPACE Excelsior
       WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};

Thanks for any answer. 感谢您的任何答复。

The error say that CQLSH ascii encoder can't encode the unicode character u'\\xe9' which represent é 错误提示CQLSH ascii编码器无法编码表示é的unicode字符u'\\ xe9'

So when creating keyspace use keyspace name in ascii format. 因此,在创建键空间时,请使用ascii格式的键空间名称。

By the way using your create keyspace command gives me no error, but if i use keyspace name with unicode character like 'éxcelsior' can produce the exact same error 顺便说一句,使用您的create keyspace命令不会给我任何错误,但是如果我使用带有Unicode字符(例如'éxcelsior'键空间名称,则会产生完全相同的错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe9' in position 54: ordinal not in range(128) - UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 54: ordinal not in range(128) Python - 'ascii' 编解码器无法对位置 5 中的字符 u'\\xe9' 进行编码:序号不在范围内(128) - Python - 'ascii' codec can't encode character u'\xe9' in position 5: ordinal not in range(128) Python eyed3 UnicodeEncodeError:'ascii'编解码器无法在位置17编码字符u'\\ xe9':序数不在范围内(128) - Python eyed3 UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 17: ordinal not in range(128) UnicodeEncodeError:'ascii'编解码器无法在位置31编码字符'\\ xe9':安装金字塔期间序数不在range(128)中 - UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 31: ordinal not in range(128) during installing pyramid UnicodeEncodeError:'ascii'编解码器无法编码位置17710中的字符u'\ xe7':序数不在范围内(128) - UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in position 17710: ordinal not in range(128) 'ascii'编解码器不能对位置186中的字符u'\\ u201d'进行编码:序数不在范围内(128) - 'Ascii' codec can't encode character u'\u201d' in position 186: ordinal not in range(128) 'ascii'编解码器无法对位置9中的字符u'\\ u2013'进行编码:序数不在范围内(128) - 'ascii' codec can't encode character u'\u2013' in position 9: ordinal not in range(128) UnicodeEncodeError:'ascii'编解码器无法对位置448中的字符u'\\ u2013'进行编码:序数不在范围内(128) - UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 448: ordinal not in range(128) UnicodeEncodeError:'ascii'编解码器无法在位置32编码字符u'\\ u2019':序数不在范围内(128) - UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 32: ordinal not in range(128) UnicodeEncodeError: 'ascii' codec can't encode character u'\–' in position 3 2: ordinal not in range(128) - UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 3 2: ordinal not in range(128)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM