2008-02-15から1日間の記事一覧

いつぞやのデベハトップはunicodeで解決される

unicodeにすれば日本語にlowerとupperを使っても問題ないのね。 >>> print os.getcwd().lower() c:\documents and settings\tk\デベハトップ >>> print os.getcwdu().lower() c:\documents and settings\tk\デスクトップ

PILでJpegサポートを有効にする

はまったらメモということで。 PILでJpegファイルを扱おうとしたら、"IOError: decoder jpeg not available"となったので調べてみたら、PILインストール時に"JPEG support not available"となっていた。 どうやらlibjpeg-devが足りなかったらしい。 ちなみに…