Skip to content

Rails 8.1 Deprecation Warnings - ActiveSupport::Multibyte::Chars / String#mb_chars #150

Closed

Description

@rgaufman

I'm seeing these after updating to Rails 8.1:

DEPRECATION WARNING: ActiveSupport::Multibyte::Chars is deprecated and will be removed in Rails 8.2. Use normal string methods instead. (called from Mongoid::Search::Util.normalize_keywords at /opt/homebrew/lib/ruby/gems/3.4.0/bundler/gems/mongoid_search-480349302907/lib/mongoid_search/util.rb:45)
DEPRECATION WARNING: ActiveSupport::Multibyte::Chars is deprecated and will be removed in Rails 8.2. Use normal string methods instead. (called from Mongoid::Search::Util.normalize_keywords at /opt/homebrew/lib/ruby/gems/3.4.0/bundler/gems/mongoid_search-480349302907/lib/mongoid_search/util.rb:46)
DEPRECATION WARNING: String#mb_chars is deprecated and will be removed in Rails 8.2. Use normal string methods instead. (called from Mongoid::Search::Util.normalize_keywords at /opt/homebrew/lib/ruby/gems/3.4.0/bundler/gems/mongoid_search-480349302907/lib/mongoid_search/util.rb:44)

Activity

  1. dblock commented on Dec 16, 2025

    @dblock
    Contributor

    Please PR a fix!

  2. stanley90 commented on Jan 28, 2026

    @stanley90
    Contributor

    Hi, here #151

  3. dblock commented on Oct 18, 2026

    @dblock
    Contributor

    Fixed by #151, merged and included in 0.5.0. Keyword normalization now uses Ruby string methods (unicode_normalize and downcase) instead of the deprecated mb_chars / ActiveSupport::Multibyte::Chars path. Thank you for reporting this, and thanks to @stanley90 for the fix.

    This comment was posted by an AI on behalf of @dblock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions