github/gh-ost

Request for assistance: mapping charsets

Open

#228 aberto em 9 de set. de 2016

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Go (819 forks)batch import
help wantedsuggested for community contribution

Métricas do repositório

Stars
 (8.101 stars)
Métricas de merge de PR
 (Mesclagem média 17d 1h) (12 fundiu PRs em 30d)

Description

Matter at hand: gh-ost's support for multiple charsets.

gh-ost works well out-of-the-box with utf8 and utf8mb4.

However for other character sets it needs to be told, explicitly, how to convert strings. For example, the latin1 character set is supported, and is converted via golang's charmap.Windows1252, see: https://github.com/github/gh-ost/blob/master/go/sql/encoding.go#L20

If anyone is willing to assist in mapping other MySQL charsets to golang Encoders, we're very grateful. Please PR the https://github.com/github/gh-ost/blob/master/go/sql/encoding.go file with additional charsets.

Guia do colaborador