Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

RestEasy @POST with hebrew

Dan Berke
2010-06-26
2013-06-06
  • Dan Berke
    Dan Berke
    2010-06-26

    Hello all,

    I have been working with rest-easy for a while and it's great!!!

    I encountered with a problem while submitting to a  @POST method Hebrew characters:
    @Path("getAdvancesSearchResults")
    @POST
    public void getAdvancesSearchResults(@Context HttpServletRequest req,
    @Context HttpServletResponse resp, @Context UriInfo uriInfo,
    @FormParam("freeText")  String freeText,
    ……

    the request is a simple form which holds a freeText form param.
    while reaching the the post method the Hebrew String becomes unreadable, while when trying this with English it works fine.

    When I run the same request against a @GET method it work fine with Hebrew but I need to use a @POST.

    Please help me,
    DAn