{"id":52,"date":"2012-04-27T19:07:17","date_gmt":"2012-04-28T00:07:17","guid":{"rendered":"http:\/\/www.playwithlua.com\/?p=52"},"modified":"2012-04-27T19:07:17","modified_gmt":"2012-04-28T00:07:17","slug":"lua-unicode-snowman-for-you","status":"publish","type":"post","link":"http:\/\/www.playwithlua.com\/?p=52","title":{"rendered":"Lua Unicode Snowman For You"},"content":{"rendered":"<p>Short one this time:<\/p>\n\n<div class=\"my_syntax_box\"><div class=\"my_syntax\"><div class=\"code\"><pre class=\"lua\" style=\"font-family:monospace;\"><span style=\"color: #0000aa;\">print<\/span><span style=\"color: #66cc66;\">&#40;<\/span> <span style=\"color: #0000aa;\">string.char<\/span><span style=\"color: #66cc66;\">&#40;<\/span> <span style=\"color: #cc66cc;\">0xe2<\/span><span style=\"color: #66cc66;\">,<\/span> <span style=\"color: #cc66cc;\">0x98<\/span><span style=\"color: #66cc66;\">,<\/span> <span style=\"color: #cc66cc;\">0x83<\/span> <span style=\"color: #66cc66;\">&#41;<\/span> <span style=\"color: #66cc66;\">&#41;<\/span><\/pre><\/div><\/div><\/div>\n\n<p>If you have a console that supports UTF-8, you&#8217;ll see a barely recognizable glyph of a snowman. If you don&#8217;t, <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/unicodesnowmanforyou.com\/');\"  href=\"http:\/\/unicodesnowmanforyou.com\/\">here&#8217;s<\/a> what you&#8217;re missing.<\/p>\n<p>(happens to be my second-favorite website of all time, behind <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/isitchristmas.com\/');\"  href=\"http:\/\/isitchristmas.com\/\">this one<\/a>)<\/p>\n<p>The handiness of this for roguelike development is plain. There&#8217;s a good character list (with hex codes) <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.utf8-chartable.de\/');\"  href=\"http:\/\/www.utf8-chartable.de\/\">here.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Short one this time: print&#40; string.char&#40; 0xe2, 0x98, 0x83 &#41; &#41; If you have a console that supports UTF-8, you&#8217;ll see a barely recognizable glyph of a snowman. If you don&#8217;t, here&#8217;s what you&#8217;re missing. (happens to be my second-favorite website of all time, behind this one) The handiness of this for roguelike development is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.playwithlua.com\/index.php?rest_route=\/wp\/v2\/posts\/52"}],"collection":[{"href":"http:\/\/www.playwithlua.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.playwithlua.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.playwithlua.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.playwithlua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=52"}],"version-history":[{"count":0,"href":"http:\/\/www.playwithlua.com\/index.php?rest_route=\/wp\/v2\/posts\/52\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.playwithlua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.playwithlua.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.playwithlua.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}