[opencms-dev] [opencms] - charset encoding
石羽森
shiys at langhua.cn
Thu Apr 29 07:40:02 CEST 2004
hi Ben,
I also changed sth. in CmsMessages.java of opencms 5.0.1, try it.
public String key( String keyName ) {
try {
// modified by Shi Yusen, shiys at langhua.cn
if (m_bundle != null) return Encoder.changeEncoding(m_bundle.getString( keyName ), A_OpenCms.getDefaultEncoding());
// if (m_bundle != null) return m_bundle.getString( keyName );
} catch (MissingResourceException e) {
// not found, return warning
}
return "??? " + keyName + " ???";
}
public String getString( String keyName ) throws MissingResourceException {
// modified by Shi Yusen, shiys at langhua.cn
if (m_bundle != null) return Encoder.changeEncoding(m_bundle.getString( keyName ), A_OpenCms.getDefaultEncoding());
// if (m_bundle != null) return m_bundle.getString( keyName );
else throw new MissingResourceException("ResourceBundle not initialized", this.getClass().getName(), keyName);
}
shi yusen
---------------------------------------------------------------
Message: 3
Date: Wed, 28 Apr 2004 14:46:25 +0200
X-Virus: 1
From: BenLaKnet <benlaknet at icqmail.com>
To: opencms-dev at opencms.org
Subject: [opencms-dev] [opencms] - charset encoding
Reply-To: opencms-dev at opencms.org
Hi,
I try to use opencms in a local server that uses opencms.
I install it with charset ISO, what can I do to change to UTF-8 ?
I think it is possible to :
- change tomcat option : -Dfile.encoding=ISO-8859-1 to UTF-8
- change opencms properties : defaultContentEncoding=ISO-8859-1 to UTF-8
May I dump MySQL database and convert dump to UTF-8 to ?
May I change opencms files ?
that's all or not ???
Help !
Ben
More information about the opencms-dev
mailing list