rake test and error : log writing failed. “\xE2” from ASCII-8BIT to UTF-8

前端 未结 3 1091
谎友^
谎友^ 2021-02-19 09:24

When I run rake test, I get error line every time.

log writing failed. \"\\xE2\" from ASCII-8BIT to UTF-8  

Please guide on this.

3条回答
  •  猫巷女王i
    2021-02-19 10:19

    Are you using postgresql? Your database might be using SQL_ASCII. You can check if it is by running psql template1 -c 'show server_encoding' Delete the database cluster and reinitialize it with initdb -E utf8 /path/to/database.

提交回复
热议问题