• Post Reply Bookmark Topic Watch Topic
  • New Topic

Character conversion problem  RSS feed

Darren Marsh
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

But on windows it lists like this:

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 "��".

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!