This project is not covered by Drupal’s security advisory policy.

This module transparently converts uploaded text files between different character encodings. Administrators can enable this on a per-content-type/field basis, and expose either or both of the source and target encodings to users to configure on a per-file basis.

The primary motivation for this module is for situations where users upload text files from third-party systems which don't necessarily export text in character encodings that PHP can automatically detect, and you have some code that uses that data as input (eg. CSV file imports). With this module, you don't have to ask users to manually convert the files, you just have to identify what their system is spitting out, and tell them "Select 'Windows-1252' [or whatever] here when you upload the file".

Internally, the source text file is copied to a subdirectory below the file's normal directory and the converted file is in the usual $node->field_name[n]['filepath'] location.

Requires the PHP Multibyte String extension.

Caveats:

  • Very early stage of development.
  • At the time of writing, source text files are not restored to their proper locations as they should be when conversion is switched off for a particular content-type/field or when the module is disabled/uninstalled.

Project information

  • caution Seeking co-maintainer(s)
    Maintainers are looking for help reviewing issues.
  • By Matthew Davidson on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases