Go to file
Mika Bostrom 478b82587d Store names as UTF-8
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.
2009-12-29 13:05:03 +08:00
docs update with latest handsplayers/hudcache changes 2009-06-07 21:55:49 +01:00
files Move other files to non-packaging 2009-10-21 16:42:34 +03:00
gfx Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-10-28 00:20:26 +08:00
packaging Update debian packaging 2009-11-06 09:56:45 +02:00
pyfpdb Store names as UTF-8 2009-12-29 13:05:03 +08:00
regression-test windows git is buggy 2008-11-10 03:22:21 -05:00
utils New util to convert mysql table descriptions to a wiki table. 2009-08-05 19:06:59 -04:00
Makefile Add Makefile and a couple of test HH's 2009-12-07 12:14:19 +08:00
setup.py Use custom tray icon instead of GTK stock 2009-10-27 15:24:49 +02:00
THANKS.txt Finish sentence in THANKS.txt 2009-03-30 06:12:19 +08:00

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.