Main points of proposal
-
Manfred Stienstra
This implementation will only focus in compatibility with ruby 1.9. Compatibility for ruby 1.8 will continue to be handled by the existing MultiByte code in ActiveSupport.
Note that Multibyte doesn't do any transcoding and basically just assumes the encoding of the string is UTF-8 once you call any methods on it. In theory we could bolt on an encoding attribute to the 1.8 String class but let's exclude this from the project, the only requirement is that Rails stays working on 1.8.
Enable the definition of levels of strictness in the transcoding of strings:
I guess good names for these would be: strict, transcode, and ignore. Something like this:
config.active_encoding.handle_incompatible_characters = :strict config.active_encoding.handle_incompatible_characters = :transcode config.active_encoding.handle_incompatible_characters = :ignore
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.