ruby
io.string.encode('CP932', 'UTF-8') これはやりたくない、、、 class StringIO (Ruby 3.0.0 リファレンスマニュアル) set_encoding(ext_enc) -> self[permalink][rdoc][edit] set_encoding(ext_enc, int_enc) -> self set_encoding(ext_enc, int_enc, opt) …
docs.ruby-lang.org # cp932 io = ... io.string.encoding -> UTF-8 io = get_s3_client.get_object({ bucket: "bucket", key: "key", :response_content_encoding => 'CP932', :response_content_type => 'text/csv' }).body # :response_content_encoding …