You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arpan <ar...@gmail.com> on 2013/12/02 17:38:07 UTC

Struts2 with extended achii character problem

Hi All,

I am using struts 2.3.15 libraries.
I have put a text field value as "user‡".

Whenever I submit the form, the text field value changes and the special
character changes to "?".

I have struts1 also in the same project and it works perfectly fine for
struts1 pages.

Thanks
Arpan

Re: Struts2 with extended achii character problem

Posted by Arpan <ar...@gmail.com>.
Hi Lukasz,

Many thanks for pointing out the link.

Putting <%@ page pageEncoding="utf-8" %> solves the problem.


On Tue, Dec 3, 2013 at 12:24 PM, Lukasz Lenart <lu...@apache.org>wrote:

> Have you used pageEncoding directive in JSPs?
>
> http://stackoverflow.com/questions/3596213/page-encoding-in-jsp
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/12/3 Arpan <ar...@gmail.com>:
> > Hi Antonios,
> >
> > Thanks for the replay.
> > I have tried this, but the problem didn't go.
> >
> >
> >
> >
> > On Mon, Dec 2, 2013 at 10:48 PM, Antonios Gkogkakis <gk...@tcd.ie>
> wrote:
> >
> >> Hi Arpan,
> >>
> >> you can try setting accept-charset="utf-8" in your html forms.
> >>
> >> Antonios
> >>
> >>
> >> On 2 December 2013 16:38, Arpan <ar...@gmail.com> wrote:
> >>
> >> > Hi All,
> >> >
> >> > I am using struts 2.3.15 libraries.
> >> > I have put a text field value as "user‡".
> >> >
> >> > Whenever I submit the form, the text field value changes and the
> special
> >> > character changes to "?".
> >> >
> >> > I have struts1 also in the same project and it works perfectly fine
> for
> >> > struts1 pages.
> >> >
> >> > Thanks
> >> > Arpan
> >> >
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Struts2 with extended achii character problem

Posted by Lukasz Lenart <lu...@apache.org>.
Have you used pageEncoding directive in JSPs?

http://stackoverflow.com/questions/3596213/page-encoding-in-jsp


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/12/3 Arpan <ar...@gmail.com>:
> Hi Antonios,
>
> Thanks for the replay.
> I have tried this, but the problem didn't go.
>
>
>
>
> On Mon, Dec 2, 2013 at 10:48 PM, Antonios Gkogkakis <gk...@tcd.ie> wrote:
>
>> Hi Arpan,
>>
>> you can try setting accept-charset="utf-8" in your html forms.
>>
>> Antonios
>>
>>
>> On 2 December 2013 16:38, Arpan <ar...@gmail.com> wrote:
>>
>> > Hi All,
>> >
>> > I am using struts 2.3.15 libraries.
>> > I have put a text field value as "user‡".
>> >
>> > Whenever I submit the form, the text field value changes and the special
>> > character changes to "?".
>> >
>> > I have struts1 also in the same project and it works perfectly fine for
>> > struts1 pages.
>> >
>> > Thanks
>> > Arpan
>> >
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts2 with extended achii character problem

Posted by Arpan <ar...@gmail.com>.
Hi Antonios,

Thanks for the replay.
I have tried this, but the problem didn't go.




On Mon, Dec 2, 2013 at 10:48 PM, Antonios Gkogkakis <gk...@tcd.ie> wrote:

> Hi Arpan,
>
> you can try setting accept-charset="utf-8" in your html forms.
>
> Antonios
>
>
> On 2 December 2013 16:38, Arpan <ar...@gmail.com> wrote:
>
> > Hi All,
> >
> > I am using struts 2.3.15 libraries.
> > I have put a text field value as "user‡".
> >
> > Whenever I submit the form, the text field value changes and the special
> > character changes to "?".
> >
> > I have struts1 also in the same project and it works perfectly fine for
> > struts1 pages.
> >
> > Thanks
> > Arpan
> >
>

Re: Struts2 with extended achii character problem

Posted by Antonios Gkogkakis <gk...@tcd.ie>.
Hi Arpan,

you can try setting accept-charset="utf-8" in your html forms.

Antonios


On 2 December 2013 16:38, Arpan <ar...@gmail.com> wrote:

> Hi All,
>
> I am using struts 2.3.15 libraries.
> I have put a text field value as "user‡".
>
> Whenever I submit the form, the text field value changes and the special
> character changes to "?".
>
> I have struts1 also in the same project and it works perfectly fine for
> struts1 pages.
>
> Thanks
> Arpan
>