grunt-contrib-copy icon indicating copy to clipboard operation
grunt-contrib-copy copied to clipboard

Files copied with process get corrupted

Open idefy opened this issue 10 years ago • 1 comments

I saw the other bugs regarding corruption of images etc.. when copied over with a process, the solution to use noProcess is fine for these cases, but not satisfactory for all cases. When you need to process files that do contain certain special characters, the copied file is damaged. Today the solution is only to process or not the file. For instance, on one project I am working on with thousands of files, some js/html files contains variables with special characters, such as é or à. I know it's a very bad practice, but this is how the code is, and ECMAScript says it's valid javascript. The files are encoded mostly in windows-1252. It would be great if copy, would actually copy taking into account the encoding when processing files, so the files remains valid after processing.

idefy avatar Jul 16 '14 17:07 idefy