User Tools

Site Tools


id3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
id3 [2012/02/14 06:34] – [ID3v2 tagger] suapapaid3 [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 21: Line 21:
 </code> </code>
  
 +나는 꼼수다 - 봉주 2회
 <code python> <code python>
 mp3_tag = ID3v2(r'/home/suapapa/ggomsu-120111.mp3') mp3_tag = ID3v2(r'/home/suapapa/ggomsu-120111.mp3')
Line 33: Line 34:
 TCON [u'(28)'] TCON [u'(28)']
 </code> </code>
 +
 +에라이 한 자 잘렸네. :(
 +<code python>
 +>>> import chardet
 +>>> chardet.detect('\xbe\xee\xc1\xd8 (\xba\xc0\xc1\xd6) \xc1\xf8\xbf\xec \xb9\xce\xc1\xd6\xb4\xe7\xb4\xe7\xb1\xc7\xc1\xd6\xc0')
 +{'confidence': 0.83333333333333337, 'encoding': 'EUC-KR'}
 +>>> '자'.decode('utf-8').encode('cp949')
 +'\xc0\xda'
 +</code>
 +
 +====== 테스트 결과 (전) ======
 +<code txt>
 +[ RUN      ] MediaScannerClientTest.some_stupid_has_broken_cp949_string
 +/home/suapapa/workspace/tjmedia/tdmk/frameworks/base/media/libmedia/android_libmedia_tests/MediaScannerClient_test.cpp:260: Failure
 +Value of: "민주당당권주"
 +Expected: results->getEntry(0) + 2
 +Which is: "���ִ��������"
 +[  FAILED  ] MediaScannerClientTest.some_stupid_has_broken_cp949_string
 +</code>
 +
 ====== references ===== ====== references =====
   *[[http://www.id3.org/|official id3 site]]   *[[http://www.id3.org/|official id3 site]]
   *[[http://code.google.com/p/liquidx/wiki/pytagger|python ID3v2 tagger]]   *[[http://code.google.com/p/liquidx/wiki/pytagger|python ID3v2 tagger]]
id3.1329201282.txt.gz · Last modified: 2013/08/03 05:04 (external edit)