I am getting tv schedule from tv program website but I am getting hieroglyphics for text.
This is html
<div id="tabs-1">
<div class="tab-content clear">
<div class="col">
<h2 class="col-heading">претпладне</h2>
<ul class="col-list">
<li class="col-item">
<span class="time">06:45</span>
<span class="title">
<span class="h4">Македонија наутро</span>
<br />
<span class="em">инфостудио</span>
</span>
</li>
<li class="col-item">
<span class="time">09:15</span>
<span class="title">
<span class="h4">Музичко интермецо</span>
<br />
<span class="em">•</span>
</span>
</li>
This is what jsoup returns
<li class="col-item">
b <span class="time">06:45</span>
<span class="title">
<span class="h4">ÐакедониÑа наÑÑÑо</span>
<br>
<span class="em">инÑоÑÑÑдио</span>
</span>
</li>
<li class="col-item">
b <span class="time">09:15</span>
<span class="title">
<span class="h4">ÐÑзиÑко инÑеÑмеÑо</span>
<br>
<span class="em">â¢</span>
</span>
</li>
See that ÐакедониÑа наÑÑÑо thing, thats the problem. This is my code
Document document = Jsoup.parse(response);
Element description = document.getElementById("tabs-1");
Elements c = description.getElementsByTag("li").prepend("b");
Elements time = description.getElementsByClass("time");
Elements title = description.getElementsByClass("title");
String v = c.toString();
adress.append(v);
I am using Volley library thats why I am parsing responce string,don't get confused. This is url I am trying to parse http://creativa5.com/dev/mtvepg/programa/.
I tried using
Document document = Jsoup.parse(response, "ISO-8859-1");
but same thing.
Any help how to encode this to utf-8 ?
инфостудио