fix: Windows 한글 깨짐 해결 및 문서화

- UTF-8 인코딩 강제 코드 추가 (Windows cp949 문제 해결)
- import_products_from_mssql.py: 한글 제품명 정상 출력
- view_products.py: 한글 카테고리명 정상 출력
- CLAUDECODE.md: Windows 한글 깨짐 해결 방법 문서화

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-23 23:32:56 +09:00
parent 5cab3229db
commit 6026f0aae8
3 changed files with 46 additions and 1 deletions

View File

@@ -2,10 +2,17 @@
product_master 제품 조회
"""
import sys
import sqlite3
import os
import json
# UTF-8 인코딩 강제 (Windows 한글 깨짐 방지)
if sys.platform == 'win32':
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8')
def view_products():
"""product_master 제품 조회"""
db_path = os.path.join(os.path.dirname(__file__), 'db', 'mileage.db')