ich eine Batch-Datei (01_update.bat
) und SQL (update.sql
)erstellen Batch-Datei für Postgres im japanischen o
01_update.bat
echo.
pause
"C:\Program Files\PostgreSQL\9.5\bin\psql.exe" -U postgres -d javasamplepj_core -f .\update.sql
pause
update.sql Datei
DELETE FROM "CORE_LANGUAGE_PROPERTY" WHERE "KEY" = 'error_incompletedate';
==> aber wenn ich Batch-Datei ausführen, bekomme ich diesen Fehler:
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
Haben Sie die SQL-Datei mit einer [BOM] (https://en.wikipedia.org/wiki/Byte_order_mark) gespeichert? Ich denke, psql unterstützt das nicht. –