[Home] [Setting up Mac OS X] [Python]: [ãã¡ã¤ã«ãèªã] æ¥æ¬èªã使ã Pythonã§æ¥æ¬èªã使ã Python 2.4以éã§ã¯ãæ¨æºã§æ¥æ¬èªãæ±ããã¨ãã§ãã¾ãã Pythonã®ã½ã¼ã¹ã³ã¼ããUTF-8ã§æ¸ãã«ã¯ æ¥æ¬èªãæ±ãPythonã®ã¹ã¯ãªããã®ä¸ã§ã¯ãUTF-8ã®æåã³ã¼ãã使ãã®ã 楽ã§ãã Mac OS Xã®ã¿ã¼ããã«ã§æ¥æ¬èªãæ±ãå ´åã¯ã ããã®ã4. Terminalã®è¨å®ãå¤ãããã® æ示ã«å¾ã£ã¦ãã ããã 以ä¸ãã½ã¼ã¹ã³ã¼ãã®ç°¡åãªä¾ã示ãã¾ãã #!/usr/bin/env python # -*- coding: utf-8 -*- import re jtext = u'åç«ãé ããã¼ããã¦ãã¾ã' print 'jtext has', len(jtext), 'Japanese characters.' if re.se
{{#tags}}- {{label}}
{{/tags}}