From 0210350621523a02998953f52f27ef0acf25fd08 Mon Sep 17 00:00:00 2001 From: Yuji Yamano Date: Wed, 23 Aug 2023 15:22:34 +0900 Subject: [PATCH] Change default encoding to utf-8 from cp1252. cp1252 is a superset of iso-8859-1. I don't think it is a good default value. See https://github.com/koxudaxi/fastapi-code-generator/pull/334#issuecomment-1672963206 Fixed #334 --- fastapi_code_generator/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi_code_generator/__main__.py b/fastapi_code_generator/__main__.py index 21194dc..630f7dd 100644 --- a/fastapi_code_generator/__main__.py +++ b/fastapi_code_generator/__main__.py @@ -43,7 +43,7 @@ def dynamic_load_module(module_path: Path) -> Any: @app.command() def main( - encoding: str = typer.Option("cp1252", "--encoding", "-e"), + encoding: str = typer.Option("utf-8", "--encoding", "-e"), input_file: str = typer.Option(..., "--input", "-i"), output_dir: Path = typer.Option(..., "--output", "-o"), model_file: str = typer.Option(None, "--model-file", "-m"),