Skip to content

Commit

Permalink
Add encoding mappings for utf16le and gb18030
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbuenemann committed Apr 27, 2019
1 parent 58b1170 commit a11ac3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions support/mysql_enc_to_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"geostd8" => "NULL",
"cp932" => "Windows-31J",
"eucjpms" => "eucJP-ms",
"utf16le" => "UTF-16LE",
"gb18030" => "GB18030",
}

client = Mysql2::Client.new(username: user, password: pass, host: host, port: port.to_i)
Expand Down
2 changes: 2 additions & 0 deletions support/ruby_enc_to_mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"geostd8" => nil,
"cp932" => "Windows-31J",
"eucjpms" => "eucJP-ms",
"utf16le" => "UTF-16LE",
"gb18030" => "GB18030",
}

puts <<-HEADER
Expand Down

0 comments on commit a11ac3b

Please sign in to comment.