MCPcopy Create free account
hub / github.com/btbytes/teh / auto_unicode_decode

Function auto_unicode_decode

lib/demjson.py:614–678  ·  view source on GitHub ↗

Takes a string and tries to convert it to a Unicode string. This will return a Python unicode string type corresponding to the input string (either str or unicode). The character encoding is guessed by looking for either a Unicode BOM prefix, or by the rules specified by RFC 4627.

( s )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

decodeFunction · 0.85

Calls 4

utf32le_decodeFunction · 0.85
utf32be_decodeFunction · 0.85
JSONDecodeErrorClass · 0.85
decodeMethod · 0.80

Tested by

no test coverage detected