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

前端 未结 3 714
旧时难觅i
旧时难觅i 2021-02-19 09:46

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条回答
  •  青春惊慌失措
    2021-02-19 10:13

    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.

提交回复
热议问题