how can I decode a string containing things like this:
staße
to
staße
using python.
(EDIT: Interpreting the source as html objects does not produce the desired result, but "staÃe")
Reference Information. I'm trying my best to work with amazon mws response chains using the mws client that you get when you run it pip install mws. Particularly interesting, because the sourcestring looks like it contains 2 special characters, but the target is just "ß".
pip install mws
In the documents they talk about the meaning of the Unicode character, I did not understand
, , ß UTF-8 : C3 9F hex 195 159 . , HTML, Unicode code points 195 159, 195 - Ã. , , str bytes, bytes (Unicode) str. :
ß
str
bytes
print('\xc3\x9f') print(bytes('\xc3\x9f', 'Latin-1').decode())
Source: https://habr.com/ru/post/1685592/More articles:Sending my current position to Google maps in response - javascriptsscanf (s, "% u", & v) corresponding to signed integers - c ++Respond to relevance - react-nativeAnyMatch stream with a list - javaAdd list and iterator to create new list - pythonMacro iPhone X Detection - iosUnable to read undefined property parameters (React Router 4) - reactjsИспользование assert повышает модульное тестирование в python - pythonсигнал 5 (SIGTRAP), код 1 (TRAP_BRKPT), относящийся к webview.apk - androidNoMethodError: undefined method "delete_prefix" Class String (Ruby 2.4.1) - ruby | fooobar.comAll Articles