summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libwebvi/linkextractor.c1
-rw-r--r--src/libwebvi/request.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libwebvi/linkextractor.c b/src/libwebvi/linkextractor.c
index b0e4270..1691a46 100644
--- a/src/libwebvi/linkextractor.c
+++ b/src/libwebvi/linkextractor.c
@@ -63,6 +63,7 @@ GPtrArray *link_extractor_get_links(LinkExtractor *self) {
tidyOptSetInt(tdoc, TidyWrapLen, 4096);
tidyBufInit(&errbuf);
tidySetErrorBuffer(tdoc, &errbuf);
+ tidySetInCharEncoding(tdoc, "utf8");
err = tidyParseBuffer(tdoc, &self->html_buffer);
if (err >= 0) {
diff --git a/src/libwebvi/request.c b/src/libwebvi/request.c
index fc2b635..baca467 100644
--- a/src/libwebvi/request.c
+++ b/src/libwebvi/request.c
@@ -133,6 +133,8 @@ PipeComponent *build_and_start_menu_pipe(const WebviRequest *self) {
pipe_component_set_next(p2, p3);
pipe_downloader_start(p1);
+ // TODO: the downloaded HTML should be converted into UTF-8
+
return (PipeComponent *)p1;
}