Your Name 3 년 전
부모
커밋
fbf75666c0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apis/main.py

+ 1 - 1
apis/main.py

@@ -10,7 +10,7 @@ app = FastAPI()
 
 @app.post("/items")
 async def read_item(search_query: str = Form(...)):
-    unq=urllib.parse.unquote(search_query)
+    unq=search_query.decode("utf-8")
     print(unq)
     fw=codecs.open('/tmp/script.txt','w','utf-8')
     fw.write(unq)