[ https://issues.apache.org/jira/browse/CASSANDRA-11030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15122942#comment-15122942 ]
Stefania edited comment on CASSANDRA-11030 at 1/29/16 8:30 AM: --------------------------------------------------------------- I think we need to move the codec registration further up, I just stumbled into this: {code} C:\Users\stefania\git\cstar\cassandra>.\bin\cqlsh.bat --help Traceback (most recent call last): File "C:\Users\stefania\git\cstar\cassandra\bin\\cqlsh.py", line 220, in <module> (options, arguments) = parser.parse_args(sys.argv[1:], values=optvalues) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1400, in parse_args stop = self._process_args(largs, rargs, values) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1440, in _process_args self._process_long_opt(rargs, values) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1515, in _process_long_opt option.process(opt, value, values, self) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 789, in process self.action, self.dest, opt, value, values, parser) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 811, in take_action parser.print_help() File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1670, in print_help file.write(self.format_help().encode(encoding, "replace")) LookupError: unknown encoding: cp65001 C:\Users\stefania\git\cstar\cassandra>.\bin\cqlsh.bat --encoding utf-8 --help Traceback (most recent call last): File "C:\Users\stefania\git\cstar\cassandra\bin\\cqlsh.py", line 220, in <module> (options, arguments) = parser.parse_args(sys.argv[1:], values=optvalues) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1400, in parse_args stop = self._process_args(largs, rargs, values) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1440, in _process_args self._process_long_opt(rargs, values) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1515, in _process_long_opt option.process(opt, value, values, self) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 789, in process self.action, self.dest, opt, value, values, parser) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 811, in take_action parser.print_help() File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1670, in print_help file.write(self.format_help().encode(encoding, "replace")) LookupError: unknown encoding: cp65001 {code} -Also, on Windows 7 I still get the "?" even with cp650001- It works on one Windows 7 laptop running python 2.7.10 but it fails on my newer laptop running 2.7.11. Which version are you running? I tried downgrading to 2.7.10 but to no avail, even if I get the older installers it still says version 2.7.11. was (Author: stefania): I think we need to move the codec registration further up, I just stumbled into this: {code} C:\Users\stefania\git\cstar\cassandra>.\bin\cqlsh.bat --help Traceback (most recent call last): File "C:\Users\stefania\git\cstar\cassandra\bin\\cqlsh.py", line 220, in <module> (options, arguments) = parser.parse_args(sys.argv[1:], values=optvalues) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1400, in parse_args stop = self._process_args(largs, rargs, values) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1440, in _process_args self._process_long_opt(rargs, values) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1515, in _process_long_opt option.process(opt, value, values, self) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 789, in process self.action, self.dest, opt, value, values, parser) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 811, in take_action parser.print_help() File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1670, in print_help file.write(self.format_help().encode(encoding, "replace")) LookupError: unknown encoding: cp65001 C:\Users\stefania\git\cstar\cassandra>.\bin\cqlsh.bat --encoding utf-8 --help Traceback (most recent call last): File "C:\Users\stefania\git\cstar\cassandra\bin\\cqlsh.py", line 220, in <module> (options, arguments) = parser.parse_args(sys.argv[1:], values=optvalues) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1400, in parse_args stop = self._process_args(largs, rargs, values) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1440, in _process_args self._process_long_opt(rargs, values) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1515, in _process_long_opt option.process(opt, value, values, self) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 789, in process self.action, self.dest, opt, value, values, parser) File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 811, in take_action parser.print_help() File "C:\Program Files\Python\2.7.11\lib\optparse.py", line 1670, in print_help file.write(self.format_help().encode(encoding, "replace")) LookupError: unknown encoding: cp65001 {code} Also, on Windows 7 I still get the "?" even with cp650001 > utf-8 characters incorrectly displayed/inserted on cqlsh on Windows > ------------------------------------------------------------------- > > Key: CASSANDRA-11030 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11030 > Project: Cassandra > Issue Type: Bug > Reporter: Paulo Motta > Assignee: Paulo Motta > Priority: Minor > Labels: cqlsh, windows > > {noformat} > C:\Users\Paulo\Repositories\cassandra [2.2-10948 +6 ~1 -0 !]> .\bin\cqlsh.bat > --encoding utf-8 > Connected to test at 127.0.0.1:9042. > [cqlsh 5.0.1 | Cassandra 2.2.4-SNAPSHOT | CQL spec 3.3.1 | Native protocol v4] > Use HELP for help. > cqlsh> INSERT INTO bla.test (bla ) VALUES ('não') ; > cqlsh> select * from bla.test; > bla > ----- > n?o > (1 rows) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)