def from_splittable(self, ustr, to_output=True):
        if to_output:
            codec = self.output_codec
        else:
            codec = self.input_codec
        if not isinstance(ustr, unicode) or codec is None:
            return ustr
        try:
            return ustr.encode(codec, 'replace')
        except LookupError:
            # Output codec not installed
            return ustr
Convert a splittable string back into an encoded string.
dataset/ETHPy150Open babble/babble/include/jython/Lib/email/charset.py/Charset.from_splittable