In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsGeneral Usage Support (Moderator: MordyT)Unicode Decoder Error
Pages: [1]   Go Down
  Print  
Author Topic: Unicode Decoder Error  (Read 582 times) Bookmark and Share
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 23
Offline Offline
« on: November 01, 2011, 07:06:55 AM »

Hi! I'm using GeoIP Plugin but some people are from some weird named countries ^^

For Example
"Praia da Vitória" fails because b3 can't handle the "ó". (Output: Praia Da Vit\\xf3ria)
I don't get the country. Where could I add the ó to get converted?
Code:
111101 14:24:21 CONSOLE '1:43 say: 3 ^2LuxXx: !geoip player'
111101 14:24:21 VERBOSE 'Client Found: LuxXx on slot 3'
111101 14:24:21 VERBOSE 'Queueing event Say !geoip player'
111101 14:24:21 VERBOSE 'Parsing Event: Say: AdminPlugin'
111101 14:24:21 DEBUG 'AdminPlugin: OnSay handle 5:"!geoip player"'
111101 14:24:21 DEBUG 'AdminPlugin: Handle command !geoip player'
111101 14:24:21 VERBOSE "Queueing event Admin Command (<b3.plugins.admin.Command instance at 0x14b8ef0>, 'player', None)"
111101 14:24:21 VERBOSE "RCON sending (12.34.56.78:27960) 'tell 3 ^2^7^7player^3: ^2Praia Da Vit\\xf3ria^3, ^2Azores^3, ^2Portugal'"
111101 14:24:21 WARNING "RCON: ERROR sending: UnicodeDecodeError('ascii', 'tell 3 ^2^7^7player^3: ^2Praia Da Vit\\xf3ria^3, ^2Azores^3, ^2Portugal', 37, 38, 'ordinal not in range(128)')"
Logged

Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #1 on: November 01, 2011, 08:17:29 PM »

You could try the source code install method then update to the latest 'bleeding edge' version and that should cure it.
Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 23
Offline Offline
« Reply #2 on: November 02, 2011, 05:35:12 AM »

I'm using 1.8.0b form source.
Logged
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #3 on: November 02, 2011, 07:10:47 AM »

Do you have this line

    encoding = 'latin-1'

near line 172 of parser.py, which should be v 1.27

and q3a/rcon.py should be v 1.5

The change was made in the last few days, so you may need to download again and check you have the right versions.

I just looked at Courgette's 1.80 branch which is focusing on BF3 and it doesn't yet have these files in it. Download xlr8or's branch from

http://forum.bigbrotherbot.net/index.php?action=downloads;sa=view;down=5

and copy those 2 files from it and see if that cures your issue.

I assume that you are using UrT?
« Last Edit: November 02, 2011, 07:31:11 AM by 82ndAB.Bravo17 » Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 23
Offline Offline
« Reply #4 on: November 02, 2011, 10:35:10 AM »

parser.py version: 1.26.2
there is no "encoding = 'latin-1'"
rcon.py version: 1.4

I used branch "xlr8or-big-brother-bot-2e9f884"


I'll update and check it.

Thanks

Merge Your Updates DevTeam! Cheesy Still love b3 Smiley
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal