Login
You're viewing the ruby.social public feed.
  • Nov 26, 2026, 9:37 AM

    Alternatively, you can use `String#force_encoding`, which leaves the underlying bytes untouched and simply changes the string's encoding label, and then call `String#scrub` to replace any invalid byte sequences.

    Have you dealt with text processing in Ruby? What encoding headaches have you run into?

    💬 0🔄 0⭐ 0