diff --git a/src/extract_claude_logs.py b/src/extract_claude_logs.py index 8430825..e179892 100644 --- a/src/extract_claude_logs.py +++ b/src/extract_claude_logs.py @@ -122,7 +122,7 @@ def extract_conversation(self, jsonl_path: Path, detailed: bool = False) -> List conversation.append( { "role": "tool_use", - "content": f"šŸ”§ Tool: {tool_name}\nInput: {json.dumps(tool_input, indent=2)}", + "content": f"šŸ”§ Tool: {tool_name}\nInput: {json.dumps(tool_input, indent=2, ensure_ascii=False)}", "timestamp": entry.get("timestamp", ""), } ) @@ -183,7 +183,7 @@ def _extract_text_content(self, content, detailed: bool = False) -> str: tool_name = item.get("name", "unknown") tool_input = item.get("input", {}) text_parts.append(f"\nšŸ”§ Using tool: {tool_name}") - text_parts.append(f"Input: {json.dumps(tool_input, indent=2)}\n") + text_parts.append(f"Input: {json.dumps(tool_input, indent=2, ensure_ascii=False)}\n") return "\n".join(text_parts) else: return str(content)