Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Print Unicode characters to the Terminal with Java' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Print Unicode characters to the Terminal with Java
Authored by: cultureulterior on Apr 05, '05 07:57:57AM
How to do this in jython:

import sys
from java.lang import System
from java.io import PrintStream
System.setOut(PrintStream(System.out, 1, "UTF-8"));
class encoder:
    def write(self, text):
        System.out.write(text.encode("utf-8", "replace"))
sys.stdout = encoder()


[ Reply to This | # ]