Skip to content

Commit 15a32bf

Browse files
authored
fix: Add UTF-8 content type for bookmarks export (#1912)
1 parent 5eb314a commit 15a32bf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

capy/src/main/java/com/jocmp/capy/StarredBookmarksFile.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class StarredBookmarksFile(
1414
buildString {
1515
appendLine("<!DOCTYPE NETSCAPE-Bookmark-file-1>")
1616
appendLine("<!-- This is an automatically generated file. -->")
17+
appendLine("<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\">")
1718
appendLine("<TITLE>Starred Articles</TITLE>")
1819
appendLine("<H1>Starred Articles</H1>")
1920
appendLine("<DL><p>")

capy/src/test/java/com/jocmp/capy/StarredBookmarksFileTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class StarredBookmarksFileTest {
4242
val expected = """
4343
|<!DOCTYPE NETSCAPE-Bookmark-file-1>
4444
|<!-- This is an automatically generated file. -->
45+
|<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
4546
|<TITLE>Starred Articles</TITLE>
4647
|<H1>Starred Articles</H1>
4748
|<DL><p>
@@ -87,6 +88,7 @@ class StarredBookmarksFileTest {
8788
val expected = """
8889
|<!DOCTYPE NETSCAPE-Bookmark-file-1>
8990
|<!-- This is an automatically generated file. -->
91+
|<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
9092
|<TITLE>Starred Articles</TITLE>
9193
|<H1>Starred Articles</H1>
9294
|<DL><p>

0 commit comments

Comments
 (0)