Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] iconv / Python / unicode question
- To: tlug@example.com
- Subject: Re: [tlug] iconv / Python / unicode question
- From: "Stephen J. Turnbull" <stephen@example.com>
- Date: 02 Apr 2002 13:39:39 +0900
- Content-type: text/plain; charset=us-ascii
- In-reply-to: <20020401111432.GA30783@example.com>
- Organization: The XEmacs Project
- References: <20020401111432.GA30783@example.com>
- Sender: steve@example.com
- User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)
Jeez, Frank, surely you RFTMed first? };^> >>>>> "FB" == Frank Bennett <bennett@example.com> writes: FB> __any__ filter that will strip out these blocking characters From the python-lib info manual (slightly edited): To simplify working with encoded files or stream, the module also defines these utility functions: `open(filename, mode[, encoding[, errors[, buffering]]])' Open an encoded file using the given MODE and return a wrapped version providing transparent encoding/decoding. _Note:_ The wrapped version will only accept the object format defined by the codecs, i.e. Unicode objects for most built-in codecs. Output is also codec-dependent and will usually be Unicode as well. ENCODING specifies the encoding which is to be used for the the file. ERRORS may be given to define the error handling. It defaults to `'strict'' which causes a `ValueError' to be raised in case an encoding error occurs. Possible values for errors are `'strict'' (raise an exception in case of an encoding error), `'replace'' (replace malformed data with a suitable replacement marker, such as `?') and `'ignore'' (ignore malformed data and continue without further notice). BUFFERING has the same meaning as for the built-in `open()' function. It defaults to line buffered. -- Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Don't ask how you can "do" free software business; ask what your business can "do for" free software.
- Follow-Ups:
- Re: [tlug] iconv / Python / unicode question
- From: Frank BENNETT (フランク ベネット )
- References:
- [tlug] iconv / Python / unicode question
- From: Frank Bennett
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] iconv / Python / unicode question
- Next by Date: Re: [tlug] configuration
- Previous by thread: Re: [tlug] iconv / Python / unicode question
- Next by thread: Re: [tlug] iconv / Python / unicode question
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links