From 39244b45728f09fe8891fb81eab3d2dd40ec96c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Sat, 30 Sep 2017 21:51:12 +0200 Subject: [PATCH] replacement character as Char --- src/html.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html.cr b/src/html.cr index c8ee6f789a2c..196f166080cf 100644 --- a/src/html.cr +++ b/src/html.cr @@ -138,7 +138,7 @@ module HTML .>(Char::MAX_CODEPOINT), 0xD800..0xDFFF # unicode surrogate characters # Replace invalid characters with replacement character. - "\uFFFD" + '\uFFFD' else # don't replace disallowed codepoints unless codepoint == 0x007F ||