[Numpy-discussion] using loadtxt to load a text file in to a numpy array
Chris Barker
chris.barker at noaa.gov
Fri Jan 17 15:56:42 EST 2014
Small note:
Being an English speaker I don't normally use non-ascii characters in
> filenames but my system (Ubuntu Linux) still uses utf-8 rather than
> latin-1 or
> (and rightly so!).
just to be really clear -- encoding for filenames and encoding for
file content have nothing to do with each-other. sys.getdefaultencoding()
is _supposed_ to be a default encoding for file content -- not file names.
And of course you need to use the system file name encoding for file names!
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140117/07587fd5/attachment.html>
More information about the NumPy-Discussion
mailing list