Skip to content

Commit a11ac3b

Browse files
Add encoding mappings for utf16le and gb18030
1 parent 58b1170 commit a11ac3b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

support/mysql_enc_to_ruby.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
"geostd8" => "NULL",
4444
"cp932" => "Windows-31J",
4545
"eucjpms" => "eucJP-ms",
46+
"utf16le" => "UTF-16LE",
47+
"gb18030" => "GB18030",
4648
}
4749

4850
client = Mysql2::Client.new(username: user, password: pass, host: host, port: port.to_i)

support/ruby_enc_to_mysql.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
"geostd8" => nil,
3939
"cp932" => "Windows-31J",
4040
"eucjpms" => "eucJP-ms",
41+
"utf16le" => "UTF-16LE",
42+
"gb18030" => "GB18030",
4143
}
4244

4345
puts <<-HEADER

0 commit comments

Comments
 (0)