_Original ticket http://projects.scipy.org/numpy/ticket/2182 on 2012-07-09 by trac user opoplawski, assigned to @pearu._ f2py cannot handle UTF-8 input files. See attached for example.
Activity
numpy-gitbot commentedon Oct 19, 2012
Attachment added by trac user opoplawski on 2012-07-09: fortUtil2.f90
numpy-gitbot commentedon Oct 19, 2012
trac user pepijndevos wrote on 2012-07-10
How would you want to see this implemented? It does not seem possible to autodetect the encoding of input files.
A workaround might be to use iconv to convert your fortran code to ascii.
numpy-gitbot commentedon Oct 19, 2012
trac user opoplawski wrote on 2012-07-10
It certainly seems possible to detect it. "file" does it and there appears to be a 3-byte header in the file.
Output of file:
ron819 commentedon Nov 14, 2018
@pearu are you working on this?
ENH: f2py opens files with correct encoding, fixes numpy#635
ENH: f2py opens files with correct encoding, fixes numpy#635
ENH: Support character string arrays
ENH: Support character string arrays
ENH: Support character string arrays