{"author_name":"sile","url":"https://sile.hatenablog.jp/entry/20091221/1261413321","width":"100%","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsile.hatenablog.jp%2Fentry%2F20091221%2F1261413321\" title=\"UTF-8: \u30d0\u30a4\u30c8\u5217\u2192\u6587\u5b57\u5217\u5909\u63db(C++&amp;FFI\u7248) - sile\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","image_url":null,"type":"rich","blog_url":"https://sile.hatenablog.jp/","title":"UTF-8: \u30d0\u30a4\u30c8\u5217\u2192\u6587\u5b57\u5217\u5909\u63db(C++&FFI\u7248)","author_url":"https://blog.hatena.ne.jp/sile/","categories":["sbcl","FFI","speed"],"blog_title":"sile\u306e\u30d6\u30ed\u30b0","published":"2009-12-21 01:35:21","description":"\u6628\u65e5\u4f5c\u6210\u3057\u305futf8-octets-to-string\u95a2\u6570\u3092clisp\u3067\u3082\u8a66\u3057\u3066\u307f\u305f\u3002 ;;;; \u30c7\u30fc\u30bf\u6e96\u5099 ;; \u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30a4\u30c8\u5217\u3068\u3057\u3066\u8aad\u307f\u8fbc\u3080 (defun read-octets-file (path) (with-open-file (in path :element-type '(unsigned-byte 8)) (let ((as (make-array (file-length in) :element-type '(unsigned-byte 8)))) (read-sequence as in) as))) ;; \u8aad\u8fbc\u307f \u203b \u8aad\u307f\u8fbc\u3080\u30d5\u30a1\u30a4\u30eb\u306e\u30a8\u30f3\u30b3\u30fc\u30c9\u306fUTF-8\u3068\u3059\u308b\u2026","provider_name":"Hatena Blog","height":"190"}