[Informa-developer] char encoding using Informa - how to ?
Status: Beta
Brought to you by:
niko_schmuck
From: Felipe V. S. <fg...@gm...> - 2005-02-21 14:39:42
|
I=B4m trying to use the Informa exporter through the bellow command: ChannelIF jobChannel =3D ....; // ok here RSS_2_0_Exporter exporter =3D new RSS_2_0_Exporter(response .getWriter(), "ISO-8859-1"); jobChannel.setFormat(ChannelFormat.RSS_2_0); exporter.write(jobChannel); where "response" is the HttpServletresponse object... but the output xml is written with UTF-8 encoding. Is that a bug ? How can I change the encoding ? best regards, Felipe Ga=FAcho The output xml: <?xml version=3D"1.0" encoding=3D"UTF-8"?> <rss xmlns:dc=3D"http://purl.org/dc/elements/1.1/" xmlns:sy=3D"http://purl.org/rss/1.0/modules/syndication/" xmlns:admin=3D"http://webns.net/mvcb/" version=3D"2.0"> <channel> <title>Classificados CEJUG</title> <description>Desenvolvimento de uma se=E7=E3o de classificados para o site do CEJUG.</description> <dc:language>pt</dc:language> <dc:copyright>Classificados CEJUG</dc:copyright> <item> <title>Desenvolvedor / Programador PL / JR</title> <link>http://www.cejug.org</link> <description>Expertise na plataforma java, jsp, j2ee (servelet), conhecimento: uml, diagramas, banco de dados relacional sql server. Aloca=E7=E3o como PJ, projeto com dura=E7=E3o inicial de 5 meses, o contrat= o tem grandes chances de ser estendido devido a novas demandas. Conhecimentos desej=E1veis: Servlets/JSP</description> </item> <item> <title>Desenvolvedor Java</title> <link>http://www.cejug.org</link> <description>Conhecimento b=E1sico sistemas Linux Experiencia em JAVA, JSP, Servlets AVAN=C7ADO Experiencia com EJB, modelo MVC, servidor de aplica=E7=E3o, XML, STRUTS Experi=EAncia trabalhando em desenvolvimento Internet (1 a 2 anos) Experi=EAncia Java / J2EE (2 anos) Conhecimentos desej=E1veis: J2ME</description> </item> <item> <title>jkjn</title> <link>http://www.cejug.org</link> <description>kjnkjn Conhecimentos desej=E1veis: Web Start</description> </item> <item> <title>kjn</title> <link>http://www.cejug.org</link> <description>876 Conhecimentos desej=E1veis: Design Patterns/UML</description> </item> <item> <title /> <link>http://www.cejug.org</link> <description>Conhecimentos desej=E1veis: Swing/SWT</description> </item> <item> <title /> <link>http://www.cejug.org</link> <description>Conhecimentos desej=E1veis:</description> </item> </channel> </rss> |