Skip to content

Commit

Permalink
fix scalafmt HeadersSpec error because illegal unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
laglangyue committed Apr 14, 2024
1 parent 7f4b94c commit 8cc93c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class HeadersSpec extends AnyWordSpec with Matchers {
("my favorite character is %", "my favorite character is %25"),
("my favorite character is 𐀁", "my favorite character is %F0%90%80%81"),
// \ud801 is a high surrogate, a lone surrogate character is getting decoded as ? with UTF-8
("my favorite character is \ud801", "my favorite character is ?"),
(s"my favorite character is ${0xD801.toChar}", "my favorite character is ?"),
// \udc37 is a low surrogate, a lone surrogate character is getting decoded as ? with UTF-8
("my favorite character is \udc37", "my favorite character is ?"),
(s"my favorite character is ${0xDC37.toChar}", "my favorite character is ?"),
// a pair of surrogate characters is fine
("my favorite character is " + 0xDBFF.toChar + 0xDFFF.toChar, "my favorite character is %F4%8F%BF%BF"))

Expand Down

0 comments on commit 8cc93c0

Please sign in to comment.