caydey / ffshare

An android app to compress image, video and audio files through ffmpeg before sharing them
GNU General Public License v3.0
615 stars 30 forks source link

Accented characters are not kept in the converted file #18

Open gbdomubpkm opened 1 year ago

gbdomubpkm commented 1 year ago

Hello. Accented characters are not kept in the name of the created file:

Originally 'LE _JOUR _OÛ _LA _TERRE _S'ARRÊTA'

New file : name with codes:

image20221127_150401699

image20221127_150443713

caydey commented 1 year ago

I have done some research and I am unable to find any solution to preserve Unicode characters in a share intent.

If someone would like to try solve the problem it would be greatly appreciated, here are the lines of code you that you would want to look at: utils/Utils.kt getCacheOutputFile() gets the File output object utils/MediaCompressor.kt compressSingleFile() converts File into Uri (line 87) HandleMediaActivity.kt shareMedia() creates share intents for Uri's