Jsoup having problems with special HTML symbols, ‘ — etc
I have some HTML (String) that I am putting through Jsoup just so I can add something to all href and src attributes, that works fine. However, I'm noticing that for some special HTML characters, Jsoup is converting them from say “ to the actual character “ . I output the value before and after and I see that change. Before: THIS — IS A “TEST”. 5 > 4. trademark: ™ After: THIS — IS A “TEST”. 5 > 4. trademark: ? What the heck is going on? I was specifically converting those special characters to their HTML entities before any Jsoup stuff to avoid this. The quotes changed to the actual quote