On 2006-10-10, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Gabriel, Peter: > Many thanks for your clear answers!! Best regards.
Something I've been working on is currently using the following trick: # Create some string of non-ASCII text in ISO 8859-1. some_string = ''.join(chr(a) for a in range(0xc0, 0xdf)).decode('ISO 8859-1') # Print it to stdout, converting to the terminal's encoding, replacing # unprintable characters with '?'. print some_string.encode(sys.stdout.encoding, 'replace') -- Neil Cerutti That's the biggest laughingstock I've ever heard of in my life. --Trot Nixon -- http://mail.python.org/mailman/listinfo/python-list