RE: Java is unable to compare ö (Swedish character) from pdfbox

I used pdfbox to get data from a pdf file.
I am comparing that data to the data of webpage using selenium webdriver.
I am able to get data from both. I used contains method to comparing both data.
Java is able to compare glädjande type of data but when Kommunstyrelsens ordförande used as in sentence its not able to match.
However ordförande as a single word can be matched. I also tried

PDFTextStripper pdfStripper =newPDFTextStripper("ISO8859_1");
but not able to match data using contains method.

sk Train Asked on September 30, 2014 in Selenium WebDriver.
Add Comment
2 Answers

Hi skatkoria,

Can you please search “google-api-translate-java”. There is a jar file “google-api-translate-java.jar” to be included in your classpath. Not very sure about the exact solution but this might help you.

Thanks,
Vishal

Doctor Answered on October 8, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.