Ignore:
Timestamp:
2020-04-04T15:34:45+13:00 (4 years ago)
Author:
ak19
Message:

The inclusion of chcp 850 in setup.bat was not sufficient when Tracie Feng was working on her machine that's set to Chinese locale. The additional changes described at http://trac.greenstone.org/changeset/33793 were found to be necessary also. So am activating these additional changes by uncommenting them. This commit also contains some minor changes to comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/setup.bat

    r33793 r34098  
    299299
    300300
    301 :: On other localse, like Chinese locales, for XMLParsers to read (XML) files
     301:: On other locales, like Chinese locales, for XMLParsers to read (XML) files
    302302:: in UTF-8 encoding (instead of defaulting to encoding GBK when on Chinese locale),
    303303:: need to pass -Dfile.encoding=UTF-8 to the JVM. Can have this passed to the JVM by
     
    305305:: For example, the example at https://www.mkyong.com/java/how-to-read-utf-8-xml-file-in-java-sax-parser/
    306306:: doesn't work in a Chinese locale until the program is run with
    307 :: java -Dfile.encoding=UTF-8 <ReadXMLUTF8FileSAX>
     307:: java -Dfile.encoding=UTF-8 <ReadXMLUTF8FileSAX>, so for GS3 this will be passed in to tomcat
     308:: in build.xml
    308309::
    309310::set JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS% -Dfile.encoding=UTF-8
    310 rem set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
     311set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
Note: See TracChangeset for help on using the changeset viewer.