Search code examples
javautf-8consoleterminalindic

howto : output utf-8(kannada) characters in windows terminal using java


am working on a java(tomcat) app. that sometimes writes to stdout. But I notice that indic languages(say, kannada) turn out as ?????? characters on the std. windows console(terminal) on Windows Vista (SP1 Home premium 64-bit).

I know that I could run tomcat from within emacs(GNU Emacs 23.1.50.1 (i386-mingw-nt6.0.6001)) so I could see the tomcat console output from within emacs. Emacs renders kannada OK(although with errors).

But it would be nice if I could launch tomcat from outside of emacs if I could.

I realize that I could run tomcat from within eclipse as well (where you can control the console encoding) but again, it would be nice to launch tomcat from outside of eclipse, if I could.

So, what do developers who want to see their indic language (which takes 3 byte characters to render) do ? Also, What tail utilities do they use ?

I tried running the command chcp 65001. But after I do this, catalina.bat does NOT runat all (exits with no output) :-(

P.S : I'm running as "Administrator" user if that is of any help.

Thanks for any tips and pointers.


Solution

  • After much searching, I find that cmd.exe is NOT capable of printing indic characters!