cant read request parameter in windows-1257 encoding

classic Classic list List threaded Threaded
3 messages Options
ros
Reply | Threaded
Open this post in threaded view
|

cant read request parameter in windows-1257 encoding

ros
Hi!

I have to read form post in windows-1257 encoding:

<HTML>
<HEAD>
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1257">
</HEAD>
<form name="testForm" action="http://localhost:8080/myStruts2Action.html" method="post">
<input type="hidden" name="AAA" value="PA&amp;#315;IV">
<input type='submit' value="submit">
</form>
</BODY>
</HTML>

the request field AAA should be PAĻIV but it is PA?V

How I can read special characters like Ļ Ā Ī and others?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: cant read request parameter in windows-1257 encoding

Chris Haynes
Try adding the attribute
        accept-charset='windows-1257'
to your <form ..> tag.

Chris Haynes


On Saturday, February 24, 2007 at 3:56:15 PM, ros wrote:
> Hi!

> I have to read form post in windows-1257 encoding:

> <HTML>
> <HEAD>
>       <meta http-equiv="Content-Type" content="text/html;
> charset=windows-1257">
> </HEAD>
> <form name="testForm"
> action="http://localhost:8080/myStruts2Action.html"

> <input type="hidden" name="AAA" value="PA&amp;#315;IV">
> <input type='submit' value="submit">
> </form>
> </BODY>
> </HTML>

> the request field AAA should be PA&#315;IV but it is PA?V

> How I can read special characters like Ļ Ā Ī and others?

> Thanks!


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
ros
Reply | Threaded
Open this post in threaded view
|

Re: cant read request parameter in windows-1257 encoding

ros
I found solution: http://www.nabble.com/how-to-read-request-parameter-in-windows-1257-encoding-tf3284137.html#a9160958

Nothing about Jetty.

Thanks for tips.

Chris Haynes wrote
Try adding the attribute
        accept-charset='windows-1257'
to your <form ..> tag.

Chris Haynes