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 ]

Pages: [1]   Go Down
  Print  
Author Topic: Scandinavian characters  (Read 259 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 12
Offline Offline
« on: November 22, 2011, 03:57:27 AM »

I've finally updated bot to 1.7.1 from 1.5.1
Now for some reason im missing Ä, Ö and Å in chatlogger and in echelon.

I tracked it down to this in my b3.log

Code:
111122 12:31:31 VERBOSE 'Queueing event Say iltap\xe4iv\xe4\xe4'
111122 12:31:31 VERBOSE 'Parsing Event: Say: ChatloggerPlugin'
111122 12:31:31 DEBUG 'ChatloggerPlugin: ALL, 751, SadPanda, iltap\xe4iv\xe4\xe4'
111122 12:31:31 ERROR 'STDERR "D:\\\\bbb3\\\\b3_Mixed\\\\b3\\\\storage\\\\database.py:260: Warning: Incorrect string value: \'\\\\xE4iv\\\\xE4\\\\xE4\' for column \'msg\' at row 1\\n  cursor.execute(query, bindata)\\n"'
111122 12:31:31 DEBUG 'ChatloggerPlugin: rowcount: 1, id:32'

xe4 is Ä right there. Same thing happens with Ö which is xf6

Code:
111122 12:31:11 VERBOSE 'Queueing event Say \xf6\xf6\xf6\xf6\xf6'
111122 12:31:11 VERBOSE 'Parsing Event: Say: ChatloggerPlugin'
111122 12:31:11 DEBUG 'ChatloggerPlugin: ALL, 2, |ML|Muumipappa, \xf6\xf6\xf6\xf6\xf6'
111122 12:31:11 ERROR 'STDERR "D:\\\\bbb3\\\\b3_Mixed\\\\b3\\\\storage\\\\database.py:260: Warning: Incorrect string value: \'\\\\xF6\\\\xF6\\\\xF6\\\\xF6\\\\xF6\' for column \'msg\' at row 1\\n  cursor.execute(query, bindata)\\n"'

Any ideas how to fix this?
All worked well before bot update.
« Last Edit: November 22, 2011, 04:01:40 AM by Muumipappa » Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 12
Offline Offline
« Reply #1 on: November 23, 2011, 02:07:41 AM »

Now that i left 1.7.1 database and just ran bot with old 1.5.0 files, all scandinavian characters work just fine.
No changes made to database collation.
All tables and database is set to utf8_general_ci or utf8_unicode_ci.

There must be something what has changed way it handles ä and ö and å in 1.7.1 database.py?
Logged
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1096
Offline Offline
« Reply #2 on: November 23, 2011, 06:22:48 AM »

There were changes made in 1.6 I think that would have caused this, COD4 seems to be affected most by it.

If you want you could download the latest files from xlr8ors repo and try those and see if that fixes it.

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

There is an extra entry in the b3 xml files to set the encoding that you use.

      <set name="encoding">latin-1</set>   (Use your codepage instead of latin-1)

It goes in the server section of the xml.

Please report back with any results, if you try it.
Logged
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 12
Offline Offline
« Reply #3 on: November 24, 2011, 02:18:52 AM »

That fixed my problem  Smiley
Thank you  Roll Eyes

I didn't test it with utf8 or with any other settings tho, cos our collation and codepage at the north pole mostly is Latin-1  Grin
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal