Skip to content

Commit

Permalink
TIKA-4303: Handle OneNotePropertyEnum.CachedTitleString as RichEditTe…
Browse files Browse the repository at this point in the history
…xtUnicode

TIKA-4303: Handle OneNotePropertyEnum.CachedTitleString as RichEditTextUnicode
  • Loading branch information
sunluman committed Jan 25, 2025
1 parent bc6fd9d commit f59f6c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,14 @@ public void testDupeText() throws Exception {

assertEquals(1, StringUtils.countMatches(txt, "Sunday morning"));
}

/**
* TIKA-4303 - test extract Chinese
*/
@Test
public void testExtractChinese() throws Exception {
Metadata metadata = new Metadata();
XMLResult xml = getXML("test-tika-4303-Chinese-notes.one", metadata);
assertContains("<p>中文标题</p>", xml.xml);
}
}
Binary file not shown.

0 comments on commit f59f6c5

Please sign in to comment.