On Thu, Mar 28, 2013 at 2:54 PM, Νίκος Γκρ33κ <nikos.gr...@gmail.com> wrote: > this worked > > quote = random.choice( list( open( "/home/nikos/www/data/private/quotes.txt", > 'rb') ) ) > > and also this > > f = open( "/home/nikos/www/" + page, 'rb' ) > > i dont know why python 3 needs 'rb' though. > > Now ima having problem with this: > > htmldata = htmldata % (quote, music) > > it says soemthign about wrong operand....
http://www.joelonsoftware.com/articles/Unicode.html Read it. ChrisA -- http://mail.python.org/mailman/listinfo/python-list