3b1e67e78b
The names should be always in UTF-8 encoding. At least for PostgreSQL the encdoding of the database comes from the time of running 'initdb' (which is different from 'createdb') and if the encoding was selected or set to something else at that time, the following error will occur: File ".../pyfpdb/Database.py", line 1630, in <lambda> self.pcache = LambdaDict(lambda key:self.insertPlayer(key, siteid)) File ".../pyfpdb/Database.py", line 1661, in insertPlayer c.execute (q, (site_id, _name)) File "/usr/lib/python2.5/encodings/iso8859_15.py", line 12, in encode return codecs.charmap_encode(input,errors,encoding_table) UnicodeEncodeError: 'charmap' codec can't encode character u'\u2122' in position 10: character maps to <undefined> This happens because 'name' is a regular string as opposed to a valid unicode object. By forcing the string to unicode and encoding it in UTF-8 the error goes away. In my case the database encoding was ISO-8859-15 (latin9) but any other "wrong" encoding would trigger the same problem. This is a relatively common problem in python. |
||
---|---|---|
docs | ||
files | ||
gfx | ||
packaging | ||
pyfpdb | ||
regression-test | ||
utils | ||
Makefile | ||
setup.py | ||
THANKS.txt |
README.txt updated 26 March 2009, REB fpdb - Free Poker Database The most accurate and up-to-date information on fpdb will be found in the wiki: http://fpdb.wiki.sourceforge.net/ Other resources are: Mailing list: http://sourceforge.net/mailarchive/forum.php?forum_name=fpdb-main Chat room(irc): #fpdb on freenode.net fpdb is a free program for use with on line poker. It provides: Tracking of your results and statistics. Tracking of opponents' results statistics. Win/loss graphing Heads Up Display (HUD) with a variety of statistics Display of mucked cards in the HUD fpdb supports: Sites: PokerStars Full Tilt Poker Everleaf Network Other sites are under development and are easily added Games: Holdem Omaha (incl Hi/low) 7 Card Stud (incl Hi/low) Razz Draw support is under development Mixed Games -- HUD under development Operating Systems: Linux and other Unix-like, using X Windows Mac OS/X -- no support for HUD Databases: MySQL PostgreSQL SQLite under development Downloads: Releases: http://sourceforge.net/project/showfiles.php?group_id=226872 Development code via git: http://www.assembla.com/spaces/free_poker_tools/trac_git_tool Developers: At least 7 people have contributed code or patches. Others are welcome. License ======= Trademarks of third parties have been used under Fair Use or similar laws. Copyright 2008 Steffen Jobbagy-Felso Copyright 2009 Ray E. Barker Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 as published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license can be found in fdl-1.2.txt fpdb itself is licensed under AGPLv3, see agpl-3.0.txt.