Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python で PHP/Web サービスを使用していますが、問題が発生しu'Syst\xe8me'ますu'Syst\xc3\xa8me'。
u'Syst\xe8me'
u'Syst\xc3\xa8me'
そして、私はBからAに行く方法がわかりません.
PS: 私はすでにencoding='ascii'自分で設定しようとしましたxmlrpclib.Server。
encoding='ascii'
xmlrpclib.Server
Latin-1 (別名 ISO 8859-1) エンコーディングは、256 未満の文字をバイトに変換するために使用できます。
>>> u'Syst\xc3\xa8me'.encode('latin-1').decode('utf-8') u'Syst\xe8me'