You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "gloCalHelp.com (JIRA)" <ji...@apache.org> on 2019/06/27 01:24:00 UTC
[jira] [Comment Edited] (CASSANDRA-11626) cqlsh fails and exits on
non-ascii chars
[ https://issues.apache.org/jira/browse/CASSANDRA-11626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16873742#comment-16873742 ]
gloCalHelp.com edited comment on CASSANDRA-11626 at 6/27/19 1:23 AM:
---------------------------------------------------------------------
I am using cqlsh 5.0.1 now with cassandra 3.11.3, and also has the error as below,
@[~pauloricardomg] what are your steps to solve these decode errors? I cann't find in the above.
command: bin/cqlsh hadoop4 -u **-p **--encoding utf8 -e "select * from HYGL_JCSJ.hyjg_ods_yy_gps_novar3 where clcph='黑A00888D' and dwsj='2019-06-2509:57:19';"
Error:<stdin>:1:'ascii' codec can't decode byte 0xe9 in position 60: ordinal not in range(128)
was (Author: glocalhelp.com):
I am using cqlsh 5.0.1 now with cassandra 3.11.3, and also has the error as below,
what are your steps to solve these decode errors? I cann't find in the above.
command: bin/cqlsh hadoop4 -u **-p **--encoding utf8 -e "select * from HYGL_JCSJ.hyjg_ods_yy_gps_novar3 where clcph='黑A00888D' and dwsj='2019-06-2509:57:19';"
Error:<stdin>:1:'ascii' codec can't decode byte 0xe9 in position 60: ordinal not in range(128)
> cqlsh fails and exits on non-ascii chars
> ----------------------------------------
>
> Key: CASSANDRA-11626
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11626
> Project: Cassandra
> Issue Type: Bug
> Components: Legacy/Tools
> Reporter: Robert Stupp
> Assignee: Tyler Hobbs
> Priority: Low
> Labels: cqlsh
> Fix For: 2.2.7, 3.0.7, 3.7
>
>
> Just seen on cqlsh on current trunk:
> To repro, copy {{ä}} (german umlaut) to cqlsh and press return.
> cqlsh errors out and immediately exits.
> {code}
> $ bin/cqlsh
> Connected to Test Cluster at 127.0.0.1:9042.
> [cqlsh 5.0.1 | Cassandra 2.1.13-SNAPSHOT | CQL spec 3.2.1 | Native protocol v3]
> Use HELP for help.
> cqlsh> ä
> Invalid syntax at line 1, char 1
> Traceback (most recent call last):
> File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 2636, in <module>
> main(*read_options(sys.argv[1:], os.environ))
> File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 2625, in main
> shell.cmdloop()
> File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 1114, in cmdloop
> if self.onecmd(self.statement.getvalue()):
> File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 1139, in onecmd
> self.printerr(' %s' % statementline)
> File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 2314, in printerr
> self.writeresult(text, color, newline=newline, out=sys.stderr)
> File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 2303, in writeresult
> out.write(self.applycolor(str(text), color) + ('\n' if newline else ''))
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 2: ordinal not in range(128)
> $
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org