This content has been marked as final. Show 3 replies
Here is the context, user can enter the domainName\username and I want to capture that in the subject name.
http://www.ietf.org/rfc/rfc2253.txt It says backslash needs to be escaped
Edited by: 989369 on Feb 20, 2013 9:49 PM
In rfc2253, it says that any of the following characters need to be escaped by a backslash: , + " \ > < ;
So to make that work with a java string you will need to use four backslash characters since the backslash is an escape character in a normal java string - e.g. String subject = "testDomain\\\\testUser";