]> git.scottworley.com Git - voter/commitdiff
DOCTYPE and charset
authorScott Worley <scottworley@scottworley.com>
Sat, 19 Nov 2022 07:36:13 +0000 (23:36 -0800)
committerScott Worley <scottworley@scottworley.com>
Sat, 19 Nov 2022 07:36:13 +0000 (23:36 -0800)
src/main.rs

index a1ec8bc6cec3a6f60035d2a0df413c7ff8d04a12..4c09c105e769a22618eb162d752088ac5d877b0f 100644 (file)
@@ -75,9 +75,10 @@ fn set_cookie(mut response: cgi::Response, path: &str) -> Result<cgi::Response,
     Ok(response)
 }
 
     Ok(response)
 }
 
-const HTML_HEADER: &str = "
+const HTML_HEADER: &str = "<!DOCTYPE html>
 <html>
   <head>
 <html>
   <head>
+    <meta charset=\"utf-8\">
     <title>Vote!</title>
     <style>
       input { transform: scale(1.5); }
     <title>Vote!</title>
     <style>
       input { transform: scale(1.5); }