0

When parsing flashscore server with JSoup I have unreadable characters. Jsoup code:

       document = Jsoup.connect(URL + LABEL + SEASON + 1 + END)
                     .userAgent(USER_AGENT)
                     .header("x-fsign", FSIGN)
                     .get();

Server response:

<html>
 <head></head>
 <body>
  SA÷1¬~ZA÷ИТАЛИЯ: Серия В¬ZEE÷6oug4RRc¬ZB÷98¬ZY÷Италия¬ZC÷GbNgKxPB¬ZD÷p¬ZE÷K28bJgeL

How to work with it?

DimasG
  • 27
  • 3

1 Answers1

0

Set the correct charset in the "charset" attribute:
JSoup character encoding issue

document = Jsoup.parse(new URL(url).openStream(), "ISO-8859-1", url);
Felix Schildmann
  • 574
  • 1
  • 7
  • 22