タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

unicodeに関するmumumu-tanのブックマーク (2)

  • PythonのUnicodeEncodeErrorを知る - HDEラボ

    Pythonにはじめて触って、いつのまにか1年が過ぎたのですが、一番はまったのは、やっぱりunicodeの扱いだったと思います。 特に、 UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-12: ordinal not in range(128) のようなエラーにはさんざん悩まされました。ここがたとえばrubyなど他の言語と比べてわかりにくいために、Pythonが取っつきにくい言語になっているのではないか、と個人的には思います。 そこで、このエラーに関係するはまりどころとTipsをいくつか列挙してみました。これからPythonに触れられる方の参考になればと思います。 なお、環境はUNIX上のPython 2.4, 2.5を想定しています。 u1はunicode型で、s1はstr型です。s1にどのよ

  • Find all Unicode characters from Hieroglyphs to Dingbats – Codepoints

    Home: go to the homepage Search All Planes Random Codepoints Codepoint, n. the position of a character in an encoding system. search For example: arrow, cyrillic, parenthesis, emoji Start here: Browse one by one through blocks of characters Browse Codepoints Need help? Answer questions to find matching characters Find My Codepoint Expert Search! Search for characters with particular properties Sea

  • 1