Skip to:
Content

BuddyPress.org

Changes between Version 3 and Version 4 of Ticket #7484, comment 3


Ignore:
Timestamp:
04/27/2017 01:08:15 AM (7 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7484, comment 3

    v3 v4  
    11The problem is mostly with WordPress not properly converting utf-8 filenames to an ASCII version.
    22
    3 See #WP22363, #WP15955.
     3See #WP22363, #WP24661, #WP15955.
    44
    55We can wait for WordPress to fix this or we can put in a temporary fix.
     
    77`iconv.patch` will try to convert any utf-8 characters in the filename to their ASCII equivalent.  This should fix the immediate issue with our uploader class, but relies on `iconv`, which might not be available and is a little finicky depending on the system.
    88
    9 Could try using `mb_convert_encoding()` as well.
     9Could try using `mb_convert_encoding()` as well.  Or if `remove_accents()` worked properly, we could do the following:
    1010
    11 A better method would be using URLify against our filenames:
     11`add_filter( 'sanitize_file_name', 'remove_accents' );`
     12
     13An alternative method would be using URLify against our filenames:
    1214https://github.com/jbroadway/urlify#usage
    1315