[tek-cvs] tek/client/protocol/utils ClientConstants.java, 1.49, 1.50
Status: Beta
Brought to you by:
billthies
From: Bill T. <bil...@us...> - 2006-07-24 02:11:39
|
Update of /cvsroot/tek/tek/client/protocol/utils In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv22011/protocol/utils Modified Files: ClientConstants.java Log Message: For internationalization, use PrintWriter's configured with the appropriate character set rather then using raw PrintStream's. Index: ClientConstants.java =================================================================== RCS file: /cvsroot/tek/tek/client/protocol/utils/ClientConstants.java,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- ClientConstants.java 18 Dec 2005 23:26:04 -0000 1.49 +++ ClientConstants.java 24 Jul 2006 02:11:36 -0000 1.50 @@ -38,6 +38,7 @@ import tek.util.TEKUtil; import java.util.HashMap; // for override() import java.io.File; +import java.nio.charset.Charset; public final class ClientConstants { // ACTUAL CONSTANTS @@ -58,6 +59,16 @@ return true; } + /** + * Name of current charset in use by client when printing strings + * to browser. + */ + public static final String CHARSET_NAME = "windows-1256"; + /** + * Actual charset object for the charset in use. + */ + public static final Charset CHARSET = Charset.availableCharsets().get(CHARSET_NAME); + // the current version of the TEK Client. Append an "L" for // linux. The server currently does a test to see if there is an // L in the version name so that it can adjust to suite linux. Be |