8000 Support UTF-8 in f2py (Trac #2182) · Issue #635 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

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

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 4 comments
Closed

Support UTF-8 in f2py (Trac #2182) #635

numpy-gitbot opened this issue Oct 19, 2012 · 4 comments

Comments

@numpy-gitbot
Copy link

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.

@numpy-gitbot
Copy link
Author

Attachment added by trac user opoplawski on 2012-07-09: fortUtil2.f90

@numpy-gitbot
Copy link
Author

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
Copy link
Author

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:

fortUtil2.f90: UTF-8 Unicode (with BOM) text

@ron819
Copy link
ron819 commented Nov 14, 2018

@pearu are you working on this?

pearu added a commit to pearu/numpy that referenced this issue Jul 2, 2021
@pearu pearu self-assigned this Jul 3, 2021
pearu added a commit to pearu/numpy that referenced this issue Sep 1, 2021
pearu added a commit to pearu/numpy that referenced this issue Sep 6, 2021
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.
melissawm pushed a commit to pearu/numpy that referenced this issue Apr 4, 2022
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
0