In Java any character preceeded by a \
is considered an escape character. For example \n
is the escape character representing a new line. In the following string;
"image:\/\/http%3a%2f%2fimage.tmdb.org%2ft%2fp%2foriginal%2fojgf8iJpS4VX6jJfWGLpuEx0wm.jpg\/"
The \/
is an illegal escape character (ie, it doesn't mean anything). So, if you really wanted those two character together what you need is the escape character for back slash (\\
) followed by a forward slash, which would look like \\/
.
Given that your strings look like urls, I imagine what you are actually looking for doesn't require escape characters at all, and could just look like this.
"image://http%3a%2f%2fimage.tmdb.org%2ft%2fp%2foriginal%2fojgf8iJpS4VX6jJfWGLpuEx0wm.jpg/"