bugpokersource - Bugs: bug #14667, Can't handle unicode and odd...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #14667: Can't handle unicode and odd characters in player names

Submitted by:  alex gorbatchev <alexg>
Submitted on:  Mon 02 Nov 2009 02:15:37 PM UTC  
 
Category: poker-networkSeverity: 5 - Blocker
Priority: 5 - NormalStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: Open

Tue 23 Feb 2010 05:09:36 PM UTC, comment #2:

Is this bug still happening with 1.7.7 or 2.0 ?

Johan Euphrosine <proppy>
Project Member
Mon 02 Nov 2009 02:39:46 PM UTC, comment #1:

another type of error for the same issue

2009-11-02 14:10:34+0000 [HTTPChannel,47,222.252.124.196] PokerResource: (client-ip:222.252.124.196) render {"type":"PacketPokerPersonalInfo","firstname":"Ki·ªÅu Minh","serial":44483,"lastname":"L√
2009-11-02 14:10:34+0000 [HTTPChannel,47,222.252.124.196] Unhandled Error
Traceback (most recent call last):
File "/root/poker/twisted/protocols/basic.py", line 239, in dataReceived
return self.rawDataReceived(data)
File "/root/poker/twisted/web/http.py", line 1117, in rawDataReceived
self.allContentReceived()
File "/root/poker/twisted/web/http.py", line 1108, in allContentReceived
req.requestReceived(command, path, version)
File "/root/poker/twisted/web/http.py", line 626, in requestReceived
self.process()
--- <exception caught here> ---
File "/root/poker/twisted/web/server.py", line 150, in process
self.render(resrc)
File "/root/poker/twisted/web/server.py", line 157, in render
body = resrc.render(self)
File "/root/poker/pokernetwork/pokersite.py", line 209, in render
args = simplejson.loads(data, encoding = 'UTF-8')
File "build/bdist.linux-x86_64/egg/simplejson/__init__.py", line 318, in loads

File "build/bdist.linux-x86_64/egg/simplejson/decoder.py", line 335, in decode

File "build/bdist.linux-x86_64/egg/simplejson/decoder.py", line 351, in raw_decode

exceptions.ValueError: Unterminated string starting at: line 1 column 86 (char 86)

alex gorbatchev <alexg>
Mon 02 Nov 2009 02:15:37 PM UTC, original submission:

Here's the server log from 1.7.5 /POKER_REST:

<pre>
2009-11-02 00:56:32+0000 [HTTPChannel,12036,60.54.195.102] PokerResource: (client-ip:60.54.195.102) render {"serial":37617,"firstname":"宝贝","type":"PacketPokerPersonalInfo","lastname":
2009-11-02 00:56:32+0000 [HTTPChannel,12036,60.54.195.102] Unhandled Error
Traceback (most recent call last):
File "/root/poker/twisted/protocols/basic.py", line 239, in dataReceived
return self.rawDataReceived(data)
File "/root/poker/twisted/web/http.py", line 1117, in rawDataReceived
self.allContentReceived()
File "/root/poker/twisted/web/http.py", line 1108, in allContentReceived
req.requestReceived(command, path, version)
File "/root/poker/twisted/web/http.py", line 626, in requestReceived
self.process()
--- <exception caught here> ---
File "/root/poker/twisted/web/server.py", line 150, in process
self.render(resrc)
File "/root/poker/twisted/web/server.py", line 157, in render
body = resrc.render(self)
File "/root/poker/pokernetwork/pokersite.py", line 209, in render
args = simplejson.loads(data, encoding = 'UTF-8')
File "build/bdist.linux-x86_64/egg/simplejson/__init__.py", line 318, in loads

File "build/bdist.linux-x86_64/egg/simplejson/decoder.py", line 335, in decode

File "build/bdist.linux-x86_64/egg/simplejson/decoder.py", line 353, in raw_decode

exceptions.ValueError: No JSON object could be decoded
</pre>

alex gorbatchev <alexg>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by proppy (Posted a comment)
  • -unavailable- added by alexg (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 23 Feb 2010 05:09:36 PM UTCproppyStatusNone=>Need Info
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup