Skip to content

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

Closed

Description

@numpy-gitbot

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

  1. numpy-gitbot commented on Oct 19, 2012

    @numpy-gitbot
    Author

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

  2. numpy-gitbot commented on Oct 19, 2012

    @numpy-gitbot
    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.

  3. numpy-gitbot commented on Oct 19, 2012

    @numpy-gitbot
    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
    
  4. ron819 commented on Nov 14, 2018

    @ron819

    @pearu are you working on this?

  5. added a commit that references this issue on Jul 2, 2021
    0726657
  6. self-assigned this
    on Jul 3, 2021
  7. added 2 commits that reference this issue on Sep 1, 2021
    c8a742a
    bc41ca9
  8. added a commit that references this issue on Apr 4, 2022
    d41bfa0
  9. added a commit that references this issue on Jun 5, 2022
    d4e11c7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions