-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Support UTF-8 in f2py (Trac #2182) #635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occa 8000 sionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Attachment added by trac user opoplawski on 2012-07-09: fortUtil2.f90 |
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. |
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:
|
@pearu are you working on this? |
TST: added test for issue numpy#18684 ENH: f2py opens files with correct encoding, fixes numpy#635 TST: added test for issue numpy#6308 TST: added test for issue numpy#4519 TST: added test for issue numpy#3425 ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook. ENH: Add support for detecting utf-16 and utf-32 encodings.
TST: added test for issue numpy#18684 ENH: f2py opens files with correct encoding, fixes numpy#635 TST: added test for issue numpy#6308 TST: added test for issue numpy#4519 TST: added test for issue numpy#3425 ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook. ENH: Add support for detecting utf-16 and utf-32 encodings.
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.
The text was updated successfully, but these errors were encountered: