flnxi-Wu/fix-encoding.sh
WuYongJie 542c7bcc49 feat: 优化自定义上传模板系统
- 修复内置模板验证问题(builtin-video-material等)
- 添加模板验证工具 lib/template-validator.ts
- 创建模板系统优化需求文档(30个详细需求)
- 优化上传API的模板验证逻辑
- 改进错误提示信息的清晰度
- 添加字段池和分类管理相关需求
- 完善自定义字段的创建、验证、存储逻辑
- 清理过期的 .specstory 和 .trae 文件
2025-12-13 14:26:43 +08:00

25 lines
544 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 修复终端编码设置,解决中文乱码问题
# 使用方法:bash fix-encoding.sh 或 source fix-encoding.sh
echo "设置终端编码为 UTF-8..."
# 设置环境变量
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
# 如果系统支持,设置终端编码
if command -v locale &> /dev/null; then
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
fi
echo "[OK] 编码已设置为 UTF-8"
echo ""
echo "现在可以运行脚本了:"
echo " bash install.sh"
echo " 或"
echo " bash uninstall.sh"
echo ""