Hello all, while searching for the character encoding problem, the following
needs to be chaged:
1) support UTF-8 in the html pages, in order to do that u will need to add
the following jsp code in the header of the page: mainLayout.jsp, the code
to add is the following:
<[EMAIL PROTECTED] pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"
%>
2) change the encoding of the request at the java part..
this will be adding the following code:
ServletConfig config = getServletConfig();
String encoding =config.getInitParameter("PARAMETER_ENCODING");
if (encoding != null) {
request.setCharacterEncoding(encoding);
}
and u will have to add the PARAMETER_ENCODING in the web.xml file:
<context-param>
<param-name>PARAMETER_ENCODING</param-name>
<param-value>UTF-8</param-value>
</context-param>
I did this and added the code in the functions doGet and doPost in the
class: Dispatcher.java
the problem is that mifos dont use these functions in the normal requests.
Any idea where to change the characters encoding?
thanks
On 12/27/07, Sam Birney <[EMAIL PROTECTED]> wrote:
>
>
> Hi Omar,
>
> I don't have any idea about this particular feature. I can tell you that
> the current version, Mifos 1.0 is not fully internationalized. We are
> doing work now to complete basic internationalization (i18n) for the next
> release. Mifos is mostly unicode (UTF-8) compatible, but as you have found,
> there are still some spots where this is lacking. If you end up figuring
> out the cause of this problem it would be helpful to enter a bug in the
> issue tracker. Even better, if you are able to provide a patch that fixes
> it we would be happy to include it in Mifos 1.1.
>
> thanks,
> Sam
>
>
> On Dec 26, 2007 6:28 AM, omar bilani <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > i am trying at this stage to enter some arabic characters in the search
> > text input "main page" and press on the search button
> > the application is returning that no result where found for the search
> > string: ؤؤ
> > even though i entered two arabic characters.
> > the encoding in the html page is UTF 8.
> > i printed the values using an alert before sending them to struts and
> > the output was the character that i entered.
> > any idea why the characters are being changed?
> > thanks.
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go<http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
> > /vse0120000070mrt/direct/01/<http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go<http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
> /vse0120000070mrt/direct/01/<http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/