Docker postgres映像中的无效字节序列

我正在尝试在Docker postgres映像上执行以下操作:

FROM docker.io/postgres # Move script to the auto-startup folder of this Docker image RUN mv some_script.sql /docker-entrypoint-initdb.d/some-script.sql # Set the DB variables ENV ENCODING UTF8 ENV POSTGRES_DB some_db ENV POSTGRES_USER some_user ENV POSTGRES_PASSWORD some_password 

它创build'some-script.sql'文件的第一部分,直到find以下行:

 INSERT INTO languages (language, two_character_code, english_name, native_name) VALUES ('es-es', 'es', 'Spanish', 'Español'); 

我想这在Español文字上是错的,因为它有一个特殊的字符。 但是,奇怪的是,我可以在Windows上使用pgAdmin在相同的Docker环境中平稳地运行这个确切的文件:

查询成功返回,296毫秒没有结果。

(表成功创build的地方)

我有什么需要改变,使其通过Dockerfile工作?