updated
This commit is contained in:
parent
221eb35cda
commit
148efe50fb
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ This library is faster than [chardet](http://pypi.python.org/pypi/chardet).
|
||||||
```python
|
```python
|
||||||
# coding: utf8
|
# coding: utf8
|
||||||
import cchardet
|
import cchardet
|
||||||
msg = u'One Thousand and One Nights'
|
msg = file(r"testdata/wikipediaJa_One_Thousand_and_One_Nights_SJIS.txt").read()
|
||||||
result = cchardet.detect(msg.encode('sjis'))
|
result = cchardet.detect(msg)
|
||||||
print(result)
|
print(result)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue