def setDefaultIREncoding(encoding):
try:<EOL><INDENT>b'<STR_LIT>'.decode(encoding)<EOL><DEDENT>except:<EOL><INDENT>raise ValueError('<STR_LIT>' %(str(encoding), ))<EOL><DEDENT>global defaultIREncoding<EOL>defaultIREncoding = encoding<EOL>
setDefaultIREncoding - Sets the default encoding used by IndexedRedis.
  This will be the default encoding used for field data. You can override this on a
  per-field basis by using an IRField (such as IRUnicodeField or IRRawField)

@param encoding - An encoding (like utf-8)