I've written an app that's a wrapper for rsync and one of its functions is to get a file listing from the server and see if the files exist on the local machine. My problem is with filenames that have accented characters. �, � etc
On linux with unicode support it works fine and rsync -r lists the file as: J�rgHardt.rcd
But on windows it lists like this: J\303\266rgHardt.rcd
When it creates the files on the disk it uses the correct characters though, so if I do a File.exists() using the above string it doesn't match.
So my question is, is it possible to convert the "\303\266" back into an � and if so, how?
I tried using URLDecoder.decode(), but that sees it as 2 characters and returns "��".