artgris / FileManagerBundle

FileManager is a simple Multilingual File Manager Bundle for Symfony
MIT License
171 stars 89 forks source link

Removing character accents/sanitizing folder and file names #58

Closed CatfoodCZ closed 4 years ago

CatfoodCZ commented 4 years ago

Hi,

it would be great if you managed to implement an optional functionality to remove accents of character from file and folder names when uploading/creating and renaming them.

Most likely is is not an issues in the English, but for example in the Czech language where we use characters like ěščřžýáíéúůňťďĚŠČŘŽÝÁÍÉÚŮŇŤĎ there are problems with file/folder names.

Unfortunately iconv('UTF-8', 'ASCII//TRANSLIT', ...) does not work properly in every case.

Here are links of some code examples that do handle accents:

CatfoodCZ commented 4 years ago

Hi, you can scrap this issue.

I found out that the problem with accents has roots in the Windows. On the test and live servers it works fine so far.