Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugins by CourgetteProblem of language with chat logger
Pages: [1]   Go Down
  Print  
Author Topic: Problem of language with chat logger  (Read 657 times) Bookmark and Share
Sr. Member
****
OS: Windows
Type: Renting Server with B3
Gameservers: CoD5
Posts: 251
Offline Offline
« on: October 17, 2011, 10:19:09 PM »

Hi,

I have some errors with the plugin.

We are french and use éèà and so on...

Any idea to solve this problem Huh

111018 08:06:04   CONSOLE   '1318917964 say;593833584;0;[=TB=]Mariodu62;\x15\xe8\xe8\xe8\xe8\xe8\xe8\xe8\xe8\xe8\xe0\xe0\xe0\xe0\xe0\xe0\xe0\xe0\xe0'
111018 08:06:04   DEBUG   'AdminPlugin: OnSay handle 5:"\xe8\xe8\xe8\xe8\xe8\xe8\xe8\xe8\xe8\xe0\xe0\xe0\xe0\xe0\xe0\xe0\xe0\xe0"'
111018 08:06:04   DEBUG   'ChatloggerPlugin: ALL, 16, [=TB=]Mariodu62, \xe8\xe8\xe8\xe8\xe8\xe8\xe8\xe8\xe8\xe0\xe0\xe0\xe0\xe0\xe0\xe0\xe0\xe0'
111018 08:06:04   DEBUG   'ChatloggerPlugin: writing to file'
111018 08:06:04   ERROR   "STDERR 'Traceback (most recent call last):\\n'"
111018 08:06:04   ERROR   'STDERR \'  File "logging\\\\__init__.pyo", line 765, in emit\\n\''
111018 08:06:04   ERROR   'STDERR "UnicodeDecodeError: \'ascii\' codec can\'t decode byte 0xe8 in position 48: ordinal not in range(128)\\n"'
111018 08:06:04   ERROR   'STDERR "Y:\\\\b3_cod5_1280\\\\b3.lib\\\\b3\\\\storage\\\\database.py:260: Warning: Incorrect string value: \'\\\\xE8\\\\xE8\\\\xE8\\\\xE8\\\\xE8\\\\xE8...\' for column \'msg\' at row 1\\n"'
111018 08:06:04   DEBUG   'ChatloggerPlugin: rowcount: 1, id:5315'

thx
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: October 17, 2011, 10:49:10 PM »

is that related to Cyrillic ?
Logged

Sr. Member
****
OS: Windows
Type: Renting Server with B3
Gameservers: CoD5
Posts: 251
Offline Offline
« Reply #2 on: October 17, 2011, 11:10:43 PM »

no, with french language..

« Last Edit: October 17, 2011, 11:28:28 PM by Mariodu62 » Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: October 18, 2011, 10:34:47 AM »

try this hack of chatlogger.py and tell us how it goes

in chatlogger.py, search for
Code:
        self.msg = event.data
replace with
Code:
        self.msg = event.data.decode('utf8')
Logged

Sr. Member
****
OS: Windows
Type: Renting Server with B3
Gameservers: CoD5
Posts: 251
Offline Offline
« Reply #4 on: October 18, 2011, 11:15:05 PM »

Yooooo,

Thx courgette, it's the good way...

For french i used "ISO-8859-1" and it's now ok for the table.

But log doesn't work...

111019 09:12:59   DEBUG   'AdminPlugin: OnSay handle 5:"je ne suis plus g\xe9n\xe9 par les \xe9 et les \xe0"'
111019 09:12:59   DEBUG   u'ChatloggerPlugin: ALL, 3, [=TB=]Mariodu62, je ne suis plus g\xe9n\xe9 par les \xe9 et les \xe0'
111019 09:12:59   DEBUG   'ChatloggerPlugin: writing to file'
111019 09:12:59   ERROR   "STDERR 'Traceback (most recent call last):\\n'"
111019 09:12:59   ERROR   'STDERR \'  File "logging\\\\__init__.pyo", line 765, in emit\\n\''
111019 09:12:59   ERROR   'STDERR \'  File "codecs.pyo", line 686, in write\\n\''
111019 09:12:59   ERROR   'STDERR \'  File "codecs.pyo", line 351, in write\\n\''
111019 09:12:59   ERROR   'STDERR "UnicodeDecodeError: \'ascii\' codec can\'t decode byte 0xc3 in position 64: ordinal not in range(128)\\n"'
« Last Edit: October 18, 2011, 11:22:27 PM by Mariodu62 » Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal