[Numpy-discussion] using loadtxt to load a text file in to a numpy array
chris.barker at noaa.gov
Fri Jan 17 15:56:42 EST 2014
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!
Christopher Barker, Ph.D.
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...
More information about the NumPy-Discussion