Re: Determining encoding of a file

2007-02-03 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Ben Finney <[EMAIL PROTECTED]> wrote: > Tony Houghton <[EMAIL PROTECTED]> writes: > >> In Linux it's possible for filesystems to have a different encoding >> from the system's setting. Given a filename, is there a (preferably) >> portable way to determine its encoding? > >

Re: Determining encoding of a file

2007-02-03 Thread Ben Finney
Tony Houghton <[EMAIL PROTECTED]> writes: > In Linux it's possible for filesystems to have a different encoding > from the system's setting. Given a filename, is there a (preferably) > portable way to determine its encoding? If there were, PEP 263 would not be necessary. http://www.python.or

Re: Determining encoding of a file

2007-02-03 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Tony Houghton wrote: > In Linux it's possible for filesystems to have a different encoding from > the system's setting. Given a filename, is there a (preferably) portable > way to determine its encoding? No. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.o

Determining encoding of a file

2007-02-03 Thread Tony Houghton
In Linux it's possible for filesystems to have a different encoding from the system's setting. Given a filename, is there a (preferably) portable way to determine its encoding? -- TH * http://www.realh.co.uk -- http://mail.python.org/mailman/listinfo/python-list

RE: encoding of a file

2006-08-04 Thread Tim Golden
[Thomas Thomas] | how can I find the encoding to use to open a file.. I have a | file with "£" chararcter.. | is there some utility function in python that I can use | | how can I know which encoding to use [This is going to be a longer answer than you really want. The short answer is "probabl

encoding of a file

2006-08-03 Thread Thomas Thomas
Hi All,   how can I find the encoding to use to open a file.. I have a file with "£" chararcter.. is there some utility function in python that I can use   how can I know which encoding to use   f=codecs.open(filename, "r", encoding='iso-8859-1') or f=codecs.open(filename, "r", encoding='lat