In my extension, users can save files, by providing an output filename, after modifying the original file (images).
One of my users wants to use special characters e.g. +
or accented characters.
Android/Java/Appinventor (?) is encoding these special characters when creating the file.
For example, the user sends 3+500-1234.jpg
as a file name,
the file is saved, but returned as 3%2B500-1234.jpg
There is obviously a character set requirement somewhere, but where? When the extension code receives the proposed filename or later when the file is created with File (java.io) ? And what needs to be done ?
Thanks
Pertinent lines in the code:
try (final FileOutputStream stream = new FileOutputStream(eoutput)) {
BitmapFactory.decodeFile(etarget,options).compress(format, quality, (OutputStream) stream);
File file = new File(eoutput);
eoutput
being a variable holding the absolute fileapath, including the filename and extension.
It all works with no issue other than the above.