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


i have cqlsh on ubuntu 16.04 , here's version of cqlsh :

[cqlsh 5.0.1 | cassandra 3.10 | cql spec 3.4.4 | native protocol v4] 

i can't create keyspace , error 1 :

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

how can work?

i tried log in command :

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

but didn't work.

command create keyspace used :

create keyspace excelsior        replication = {'class': 'simplestrategy', 'replication_factor' : 3}; 

thanks answer.

the error cqlsh ascii encoder can't encode unicode character u'\xe9' represent é

so when creating keyspace use keyspace name in ascii format.

by way using create keyspace command gives me no error, if use keyspace name unicode character 'éxcelsior' can produce exact same error


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -