First page Back Continue Last page Overview

The Mail::Box module demonstrates a work around. The string is encapsulated in an object (Mail::Message::Body) which contains the character set and more related information about the string. Concatenation and other operations on message bodies are taking care of differences between the operands.

When the character set, mime type, or transfer encoding of the two objects involved in the computation differ, the left one (where the method was called upon) forces the type of the result.