Java: Encoding of a mailto link with subject and plain text multiline body

Viewed 1269

I´ve googled a lot, but I wasn´t able to find a solution to my problem. I need to encode a mailto: link with subject and body to UTF-8 in java.

The body consists of plain text

Is there any method which encodes:

  • the whole string in UTF-8, for example Ä to %C3%84S
  • blanks into %20 instead of +
  • \r\n into %0D%0A
  • / to %2f

Thank you for your help!

1 Answers
Related