Menu

#11 UTF-8 export errors

open
nobody
5
2007-08-18
2007-08-18
No

Even if UTF-8 is set as default project encoding and charset of exported files there are errors in output files. STML is correctly encoded. In order to get it work properly I belive that you should change file OutputCreatorThread.java line 70 to:
return new InputStreamReader(new BufferedInputStream(new FileInputStream(peng.getAbsoluteSTMLFilename(dtn))),charset);
and also add this code near line 207 in Document.java:
if(mode == PrintModes.HELPSET)
w.write("<?xml version='1.0' encoding='"+charset+"' ?>\n");

Discussion

  • Czarek Tarnowski

    Logged In: YES
    user_id=1770932
    Originator: YES

    Sorry for mistake, in Document.java it should by content-type with encoding not ?xml tag

     
  • Queria Sa-Tas

    Queria Sa-Tas - 2010-06-15

    Same problem here.

    This is very annoying to solve - if you aren't programmer, otherwise it is quiet simple task

    Thanks to czarek_t for solution!

    And why are meta-tags like charset/author/date skipped from helpset files at all?

    Q.

     

Log in to post a comment.