Python3. 0と2. xでstrの意味が変わりました。それに伴い文字列処理がどうかわるかを 「俺様プチencoding」 を実装することで、 垣間見ることにしましょう。 Python3. 0でのstr/ unicode/ bytes 第0回でUnicodeの識別子について触れられていましたが、 attributeの名前に ...
Note: If you are looking for a faster, more robust implementation for standart encodings, use the standard library. This library goal is to provide a flexible implementation for custom base-N ...
外部システムから送られてきたCSVファイルや、何年も前の古いテキストログをPythonで読み込もうとした時、真っ先にぶつかる壁。 それが**「文字コード(エンコーディング)の壁」**です。 「UTF-8だと思って開いたらエラーが出た」 「Shift-JISで開いてみたら ...