question: private void writeKanjiResourceFile ( File file ) throws IOException { FileOutputStream output = null ; KanjiEscapeOutputStream kanji = null ; OutputStreamWriter writer = null ; BufferedWriter w = null ; try { output = new FileOutputStream ( file ) ; kanji = new KanjiEscapeOutputStream ( output ) ; writer = new OutputStreamWriter ( kanji ) ; w = new BufferedWriter ( writer ) ; w . write ( _sb . toString ( ) ) ; } finally { Util . close ( w ) ; Util . close ( writer ) ; Util . close ( kanji ) ; Util . close ( output ) ; } }
target:  Handle Japanese encoding - by toshimm.