Re: [opennms-devel] Progress on i18n of OpenNMS web app

Sachin Naik <[email protected]>
Newsgroups gmane.network.opennms.bugs
Message-ID <481A4929.3030606__15162.6903367744$1209682386$gmane$org@geminimobile.com>
Thanks for your feedback Jeff!
>> 4) Other JSP changes;
>>    Added XML header at top, specifying encoding.  Also added doctype:
>>        <?xml version="1.0" encoding="utf-8"?>
>>        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>>
>>  For JSPs that include other JSPs with localizable string parameters,
>> added:
>> <%
>>    request.setCharacterEncoding("UTF-8");
>> %>
>>   Otherwise, the included JSP will show "?????" for UTF-8 strings (if
>> they're in Chinese for example).
>>     
>
> Ben Reed recently checked in a change to our web.xml that should  
> obviate the need for specifying UTF-8 encoding in each JSP file.   
> Would you mind verifying this?  You can find the updated web.xml at https://opennms.svn.sourceforge.net/svnroot/opennms/opennms/branches/1.6/opennms-webapp/src/main/webapp/WEB-INF/web.xml 
> .
>   
I updated my web.xml with Ben's changes, and verified that this does 
indeed eliminate the need for specifying the UTF-8 encoding.   It works 
with including JSPs as well. That's great!

> If you would like, create an enhancement bug at bugzilla.opennms.org  
> and attach a patch to it.  By the way, are you working against trunk  
> or against one of the existing tags or branches?
>   
I'm working against the trunk.  Is that OK? 

Thanks,
Sachin

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.