ERROR: character with byte sequence 0xd0 0x9a in encoding "UTF8" has no equivalent in encoding "LATIN1"



  • При некорректной настройке postgresql кодировка по умолчанию LATIN1, что может привести к ошибке загрузки снимка блокчейн.

    1. решение
    sh update.sh
    crl+c
    sh firststart.sh
    
    1. решение
    sudo locale-gen en_US.UTF-8
    dropdb sth_smartholdem
    createdb -E UTF8 -T template0 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.utf8 sth_smartholdem
    sh firststart.sh
    
    1. решение
    sudo locale-gen en_US.UTF-8
    dropdb sth_smartholdem
    createdb sth_smartholdem
    psql sth_smartholdem
    
    > sth_smartholdem=> show client_encoding;
     client_encoding
    -----------------
     LATIN1
    (1 row)
    
    > sth_smartholdem=> SET client_encoding = 'UTF8';
    SET
    > sth_smartholdem=> show client_encoding;
     client_encoding
    -----------------
     UTF8
    (1 row)
    
    > sth_smartholdem-> \q
    
    sh firststart.sh
    

Log in to reply