{"record":{"id":"8cabe6cdb60338cf","repo":"sqlmapproject/sqlmap","slug":"unknown-encoding-s","errorCode":null,"errorMessage":"unknown encoding '%s'","messagePattern":"unknown encoding '(.+?)'","errorType":"exception","errorClass":"SqlmapValueException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":1827,"sourceCode":"            errMsg += \"temporary directory location ('%s')\" % getSafeExString(ex)\n            raise SqlmapSystemException(errMsg)\n\n    conf.tempDirs.append(tempfile.tempdir)\n\n    if six.PY3:\n        _pympTempLeakPatch(kb.tempDir)\n\ndef _cleanupOptions():\n    \"\"\"\n    Cleanup configuration attributes.\n    \"\"\"\n\n    if conf.encoding:\n        try:\n            codecs.lookup(conf.encoding)\n        except LookupError:\n            errMsg = \"unknown encoding '%s'\" % conf.encoding\n            raise SqlmapValueException(errMsg)\n\n    debugMsg = \"cleaning up configuration parameters\"\n    logger.debug(debugMsg)\n\n    width = getConsoleWidth()\n\n    if conf.eta:\n        conf.progressWidth = width - 26\n    else:\n        conf.progressWidth = width - 46\n\n    for key, value in conf.items():\n        if value and any(key.endswith(_) for _ in (\"Path\", \"File\", \"Dir\")):\n            if isinstance(value, str):\n                conf[key] = safeExpandUser(value)\n\n    if conf.testParameter:\n        conf.testParameter = urldecode(conf.testParameter)","sourceCodeStart":1809,"sourceCodeEnd":1845,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L1809-L1845","documentation":"Error \"unknown encoding '%s'\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/option.py:1827 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}