From 148efe50fbfcf63ebb3cd9929ecb1d1ba129019e Mon Sep 17 00:00:00 2001 From: PyYoshi Date: Thu, 21 Jun 2012 00:11:47 +0900 Subject: [PATCH] updated --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index ffa9730..0d8b82b 100644 --- a/readme.md +++ b/readme.md @@ -78,8 +78,8 @@ This library is faster than [chardet](http://pypi.python.org/pypi/chardet). ```python # coding: utf8 import cchardet -msg = u'One Thousand and One Nights' -result = cchardet.detect(msg.encode('sjis')) +msg = file(r"testdata/wikipediaJa_One_Thousand_and_One_Nights_SJIS.txt").read() +result = cchardet.detect(msg) print(result) ```