# File activesupport/lib/active_support/multibyte/chars.rb, line 56
def initialize(string, deprecation: true)
if deprecation
ActiveSupport.deprecator.warn(
"ActiveSupport::Multibyte::Chars is deprecated and will be removed in Rails 8.2. " "Use normal string methods instead."
)
end
@wrapped_string = string
if string.encoding != Encoding::UTF_8
@wrapped_string = @wrapped_string.dup
@wrapped_string.force_encoding(Encoding::UTF_8)
end
end