On Tue, Dec 20, 2011 at 2:49 AM, Jordan Blay <be.special_at_gmail.com> wrote:
> Hi!
>
> I have the following method:
> @GET
> @Produces({ MediaType.APPLICATION_JSON })
> public Collection<Gift> getGifts(@Required @QueryParam("category") String
> categories, @QueryParam("amount") Integer amount) throws RemoteException,
> ServiceException {
> return giftManager.getGifts(categories, amount);
> }
>
> However, the client tool of WixTools.org retrieves Response body conversion
> to string using windows-1252 encoding failed. Response body not set!
Not sure how client ends up trying to use windows-1252 encoding, but
please note that the only valid encodings for JSON are UTF-8, UTF-16
and UTF-32, as per JSON specification.
So technically anything that uses 1252 (or Latin-1, for that matter)
can not be legal JSON.
-+ Tatu +-