fatbotslim.irc

fatbotslim.irc.u(s, errors='ignore')[source]

Automatically detects given string’s encoding and returns its unicode form. Decoding errors are handled according to the errors argument, see unicode() documentation for more details.

Parameters:
  • s (str) – string to decode.
  • errors (str) – decoding error handling behaviour.
Returns:

decoded string

Return type:

unicode