* Config files: Add some encoding help
* DataHelper, Router: - Save config files in UTF-8 rather than the default encoding, since we read them in UTF-8 * jetty.xml: Change encoding to UTF-8 * logs.jsp: Add system encoding * NTCP: Clean up clock skew shitlist message * Shitlist: Clean up expire message * WorkingDir: Ensure modified files are processed with UTF-8 encoding
This commit is contained in:
@ -39,6 +39,9 @@ import java.util.Map;
|
||||
* Utility class providing methods to parse and write files in config file
|
||||
* format, and subscription file format.
|
||||
*
|
||||
* TODO: Change file encoding from default to UTF-8?
|
||||
* Or switch to the DataHelper loadProps/storeProps methods?
|
||||
*
|
||||
* @author Ragnarok
|
||||
*/
|
||||
public class ConfigParser {
|
||||
|
@ -1,3 +1,4 @@
|
||||
# NOTE: This I2P config file must use UTF-8 encoding
|
||||
#
|
||||
# If you have a 'split' directory installation, with configuration
|
||||
# files in ~/.i2p (Linux) or %APPDATA%\I2P (Windows), be sure to
|
||||
|
@ -19,6 +19,7 @@ I2P <jsp:getProperty name="helper" property="version" /><br />
|
||||
<%=System.getProperty("os.name")%> <%=System.getProperty("os.arch")%> <%=System.getProperty("os.version")%><br />
|
||||
CPU <%=net.i2p.util.NativeBigInteger.cpuModel()%> (<%=net.i2p.util.NativeBigInteger.cpuType()%>)<br />
|
||||
jbigi <%=net.i2p.util.NativeBigInteger.loadStatus()%><br />
|
||||
Encoding <%=System.getProperty("file.encoding")%><br>
|
||||
</p>
|
||||
<hr />
|
||||
<jsp:useBean class="net.i2p.router.web.LogsHelper" id="logsHelper" scope="request" />
|
||||
|
Reference in New Issue
Block a user