incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claire Chang <cla...@merchantcircle.com>
Subject UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 79: ordinal not in range(128)
Date Tue, 14 Sep 2010 03:57:44 GMT
hi,

I am using pycass with cassandra 0.6.3 and encountered this error while inserting a column.
The offending characters are in a column value. Could anyone shed some light on this issue?


UserAgent: UnkownUA
Referer: 
Traceback (most recent call last):
  File "../application/model/status2.py", line 257, in import_from_service
    json=json)
  File "../application/model/status2.py", line 57, in __init__
    lib.batch_insert(CLIENT, cf_maps, write_consistency_level=ConsistencyLevel.QUORUM)
  File "../application/lib/batchcolumnfamily.py", line 113, in batch_insert
    write_consistency_level)
  File "/usr/lib/python2.4/site-packages/pycassa/connection.py", line 185, in client_call
    return getattr(self._local.client, attr)(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/cassandra/Cassandra.py", line 780, in batch_mutate
    self.send_batch_mutate(keyspace, mutation_map, consistency_level)
  File "/usr/lib/python2.4/site-packages/cassandra/Cassandra.py", line 789, in send_batch_mutate
    args.write(self._oprot)
  File "/usr/lib/python2.4/site-packages/cassandra/Cassandra.py", line 3686, in write
    oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 79: ordinal
not in range(128)
Mime
View raw message