def needsEncoding(self, s):
if isinstance(s, basestring):<EOL><INDENT>for c in self.special:<EOL><INDENT>if c in s:<EOL><INDENT>return True<EOL><DEDENT><DEDENT><DEDENT>return False<EOL>
Get whether string I{s} contains special characters.
@param s: A string to check.
@type s: str
@return: True if needs encoding.
@rtype: boolean