Re: UnicodeDecodeError, how to elegantly deal with this?

2008-08-05 Thread John Machin
On Aug 5, 8:37 pm, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > Hi John, > > > If you don't want to be bothered with "unicode problems": > > (1) Don't create a "unicode problem" when one doesn't exist. > > (2) Don't bother other people with *your* "unicode problems". > > Well I guess you misundersto

Re: UnicodeDecodeError, how to elegantly deal with this?

2008-08-05 Thread Jorgen Bodde
Hi John, > If you don't want to be bothered with "unicode problems": > (1) Don't create a "unicode problem" when one doesn't exist. > (2) Don't bother other people with *your* "unicode problems". Well I guess you misunderstood what I meant. I meant I am a simple developer, getting a string from t

Re: UnicodeDecodeError, how to elegantly deal with this?

2008-08-05 Thread John Machin
On Aug 5, 4:23 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > Hi All, > > I am relatively new to python unicode pains and I would like to have > some advice. I have this snippet of code: > thefile = args["file"] > filemask = u"%file%" > therep = arg.replace(filemask, thefi

Re: UnicodeDecodeError, how to elegantly deal with this?

2008-08-05 Thread Jorgen Bodde
es, I can help. > > thx. Edwin > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Jorgen Bodde > Sent: Monday, August 04, 2008 2:24 PM > To: python-list@python.org > Subject: UnicodeDecodeError, how to elegantly deal

Re: UnicodeDecodeError, how to elegantly deal with this?

2008-08-04 Thread Edwin . Madari
t@python.org Subject: UnicodeDecodeError, how to elegantly deal with this? Hi All, I am relatively new to python unicode pains and I would like to have some advice. I have this snippet of code: def playFile(cmd, args): argstr = list() for arg in appcfg.options[appcfg.CFG_PLAYER_ARGS].split():

UnicodeDecodeError, how to elegantly deal with this?

2008-08-04 Thread Jorgen Bodde
Hi All, I am relatively new to python unicode pains and I would like to have some advice. I have this snippet of code: def playFile(cmd, args): argstr = list() for arg in appcfg.options[appcfg.CFG_PLAYER_ARGS].split(): thefile = args["file"] filemask = u"%file%" th