MCPcopy Index your code
hub / github.com/clips/pattern / utf8

Function utf8

pattern/web/oauth/__init__.py:51–52  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

49 return urllib.quote(string, safe="~")
50
51def utf8(string):
52 return isinstance(string, unicode) and string.encode("utf-8") or str(string)
53
54def normalize(string):
55 # Normalize accents (é => e) for services that have problems with utf-8

Callers 3

normalizeFunction · 0.85
baseFunction · 0.85
signFunction · 0.85

Calls 2

strFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…