Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ public void testExpandTemplateEscape3() {

@Test
public void testExpandTemplateUnknown() {
String expected = "%bj�rk%";
String expected = "%björk%";
newEventContext();
String actual = this.tmri.expandTemplate("%bj�rk%", curr);
String actual = this.tmri.expandTemplate("%björk%", curr);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\u00F6 is also an option

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as we're consistent everywhere.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, given how easy it seems to be to mess up encodings in source and how different viewing applications seem to cope differently (at least on the Mac), maybe we should be using escaped codepoints everywhere, yes. What do you think? I could file a ticket about fixing the other instances and fix the others I notice in the meantime. (I had already fixed mine in mtbc@7b77a74 -- I assume there's some convenient tool into which one can paste the strings to get their escaped equivalents.)

Assert.assertEquals(expected, actual);
}

Expand Down