Hello Carsten, the current contract of the valueOf method is to use a "name" such as "application/atom+xml" instead of a complete string with the parameters. In your case, you can use the ContentType constructor with the String parameter.
Best regards, Thierry Boileau > Hi, > > when I do the following: > --- > MediaType mediaType = MediaType.valueOf("application/atom+xml; > charset=UTF-8"); > System.out.println(mediaType.toString()); > --- > I get this output (with 2.0M6): > application/atom+xml; charset=UTF-8; charset=UTF-8 > > Seems to be a bug in the handling of parameters. > > Cheers, > Carsten > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2441619 > > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2441712