为日语的 postgres 创建批处理文件 os
create batch file for postgres in japanese os
我有一个批处理文件 (01_update.bat
) 和 SQL (update.sql
) 文件
01_update.bat
echo.
pause
"C:\Program Files\PostgreSQL.5\bin\psql.exe" -U postgres -d javasamplepj_core -f .\update.sql
pause
update.sql
DELETE FROM "CORE_LANGUAGE_PROPERTY" WHERE "KEY" = 'error_incompletedate';
==> 但是当我 运行 批处理文件时我得到这个错误:
psql: ./ update.sql: 1: ERROR: the 0xef 0xbb byte sequence in the coding scheme "SJIS"
Character is not equal in the "UTF8" encoding scheme with
谷歌搜索 0xef 0xbb 字节序列导致 BOM。例如,在 Notepad++ 中,您可以指定是否要将其保存为带或不带 BOM。这应该可以解决问题。
我有一个批处理文件 (01_update.bat
) 和 SQL (update.sql
) 文件
01_update.bat
echo.
pause
"C:\Program Files\PostgreSQL.5\bin\psql.exe" -U postgres -d javasamplepj_core -f .\update.sql
pause
update.sql
DELETE FROM "CORE_LANGUAGE_PROPERTY" WHERE "KEY" = 'error_incompletedate';
==> 但是当我 运行 批处理文件时我得到这个错误:
psql: ./ update.sql: 1: ERROR: the 0xef 0xbb byte sequence in the coding scheme "SJIS" Character is not equal in the "UTF8" encoding scheme with
谷歌搜索 0xef 0xbb 字节序列导致 BOM。例如,在 Notepad++ 中,您可以指定是否要将其保存为带或不带 BOM。这应该可以解决问题。