)]}'
{"monasca_common/rest/utils.py":[{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"cd07d29f544ac82e51df4d70b826a416da995633","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        params \u003d falcon.uri.parse_query_string(req.query_string)"},{"line_number":189,"context_line":"        if param_name in params:"},{"line_number":190,"context_line":"            if isinstance(params[param_name], list):"},{"line_number":191,"context_line":"                param_val \u003d encodeutils.safe_decode(params[param_name][0], \u0027utf8\u0027)"},{"line_number":192,"context_line":"            else:"},{"line_number":193,"context_line":"                param_val \u003d encodeutils.safe_decode(params[param_name], \u0027utf8\u0027)"},{"line_number":194,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_f8d6e427","line":191,"updated":"2018-05-18 11:31:47.000000000","message":"Nice, how about using encodeutils.to_utf8 ?","commit_id":"9f31dfe10fed9dda3d0659f038bd47079b57fb79"},{"author":{"_account_id":17669,"name":"Doug Szumski","email":"doug@stackhpc.com","username":"DougSzumski"},"change_message_id":"1db495b4038158c85593d8251cd97375dff7be07","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        params \u003d falcon.uri.parse_query_string(req.query_string)"},{"line_number":189,"context_line":"        if param_name in params:"},{"line_number":190,"context_line":"            if isinstance(params[param_name], list):"},{"line_number":191,"context_line":"                param_val \u003d encodeutils.safe_decode(params[param_name][0], \u0027utf8\u0027)"},{"line_number":192,"context_line":"            else:"},{"line_number":193,"context_line":"                param_val \u003d encodeutils.safe_decode(params[param_name], \u0027utf8\u0027)"},{"line_number":194,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_567c89b4","line":191,"in_reply_to":"5f7c97a3_f8d6e427","updated":"2018-05-18 13:57:09.000000000","message":"Thanks for taking a look Witek. I think encodeutils.to_utf8 will call encode in py2:\n\nhttps://github.com/openstack/oslo.utils/blob/master/oslo_utils/encodeutils.py#L107\n\nThere is no equivalent encodeutils.from_utf8","commit_id":"9f31dfe10fed9dda3d0659f038bd47079b57fb79"}]}
