Hi Pochu,
This image you submitted is from a system file browser or something like this, right? This is not from aMule.
The situation is the following: if the file name you have in your directory uses a character set that is not the same as in your system. Your system uses UTF-8. It will always read garbage when you have, for instance, ISO-8859-1file names, which seems to be the case.
Well, we have to find a reasonable policy here. At the present time, aMule works like this:
1) Converting from multibyte to UNICODE:
- Assume that input name is ISO-8859-1 and try to convert it to UNICODE. If this fails, then try to convert from UTF-8 to UNICODE.
2) Converting from UNICODE to multibyte:
- Try to convert UNICODE input to ISO-8859-1. If this fails, convert it to UTF-8.
I have been thinking, and maybe step 1 is wrong. ISO-8859-1 to UNICODE must never fail, while UTF-8 to UNICODE can fail. Maybe the right order is the opposite. Still there could be a situation where the file name is ISO-8859-1 but by chance it was a valid UTF-8 sequence.
What we can experiment with is not use ISO-8859-1file names and using the system encoding instead.