Java(guiserver.jar) need start option "-Dfile.encoding=UTF8".
I tried add setProperty() in guiserver(main), but NOT WORK.(Java BUG?)
Code: Select all
System.setProperty("file.encoding", "UTF8") and "UTF-8"
Code: Select all
---- guiserver.lsp changed ----
(define (init (portIn 47011) (host "127.0.0.1") manual)
; check for server portIn and if this was started by java
(if (main-args 2) (set 'portIn (int (main-args 2) portIn)))
; if guiserver.jar did not start this process then guiserver.jar
; still has to be started, except when manual parameter is true
(if (and (not (= (main-args 3) "javastart")) (not manual))
(if (= ostype "Win32")
;(process (string "cmd /c " server-path " " portIn))
(process (string "javaw.exe -Dfile.encoding=UTF8 -jar " server-path " " portIn))
(= ostype "OSX")
;(process (string "/usr/bin/java -jar " server-path " " portIn))
(process (string "/usr/bin/java -Dfile.encoding=UTF8 -jar " server-path " " portIn))
(env "JAVA_HOME")
;(process (string (env "JAVA_HOME") "/bin/java -jar " server-path " " portIn))
(process (string (env "JAVA_HOME") "/bin/java -Dfile.encoding=UTF8 -jar " server-path " " portIn))
;(process (string "/usr/bin/java -jar " server-path " " portIn))
(process (string "/usr/bin/java -Dfile.encoding=UTF8 -jar " server-path " " portIn))
)
)
....
....
----