0
我使用twitter-api從Twitter中的位置得到了這個('T :)字符結果。如何在python中編碼此字符
我不知道如何編碼這個字符從結果中刪除它。字符串的
例如==>"ÜT: -7.0651362,110.4596271"
已經與"ÜT:"
嘗試檢查字符串,但它沒有效果
if "ÜT:" in t.location: print "yes, it contain the char"
如何刪除在Python中字符。
以前感謝。
[絕對最低每一個軟件開發人員絕對,正面必須知道Unicode和字符集(沒有藉口!)](http://www.joelonsoftware.com/articles/Unicode.html) – delnan
已經得到答案使用unicodedata.normalize('NFKD',string_to_convert).encode( 'ASCII', '忽略') – user1857690