Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 444C610F29 for ; Tue, 5 Nov 2013 22:51:28 +0000 (UTC) Received: (qmail 62075 invoked by uid 500); 5 Nov 2013 22:51:28 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 62044 invoked by uid 500); 5 Nov 2013 22:51:28 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 62036 invoked by uid 99); 5 Nov 2013 22:51:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 22:51:28 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of maqsood.bhatti@gmail.com does not designate 216.139.250.139 as permitted sender) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 22:51:23 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VdpSI-0006Gn-51 for dev@activemq.apache.org; Tue, 05 Nov 2013 14:50:38 -0800 Date: Tue, 5 Nov 2013 14:50:23 -0800 (PST) From: belaie To: dev@activemq.apache.org Message-ID: <1383691823113-4673926.post@n4.nabble.com> Subject: Norwegian character ActiveMQ consumer problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hello I'm reading a que from ActiveMQ using ActiveMQ java client. I'm have problem reading norwegian characters such as =C3=85,=C3=86, =C3=98 from mes= sage body in the que, anyone can help? Here is my code in java: ActiveMQConnectionFactory connectionFactory =3D new ActiveMQConnectionFactory(this.getHostNameConnectionString()); // Create a Connection Connection connection =3D connectionFactory.createConnection(); connection.start(); // Create a Session Session session =3D connection.createSession(false, Session.AUTO_ACKNOWLEDGE); // Create the destination (Topic or Queue) Destination destination =3D session.createQueue(this.getQueName()); // Create a MessageConsumer from the Session to the Topic or Queue MessageConsumer consumer =3D session.createConsumer(destination= ); // Wait for a message 1 second, timeunut is in miliseconds Message message =3D consumer.receive(1000); if (message instanceof TextMessage) { File filetoWrite =3D new File(fileName); if(filetoWrite.exists()){ filetoWrite.delete(); } TextMessage textMessage =3D (TextMessage) message; =20 =09=09=09=09 =09=09FileWriter fw =3D new FileWriter(filetoWrite.getAbsoluteFile(),true); BufferedWriter bw =3D new BufferedWriter(fw); bw.write(textMessage.getText()); bw.close(); messagePayLoad =3D "done#"; } else { messagePayLoad =3D "empty"; } -- View this message in context: http://activemq.2283324.n4.nabble.com/Norwegi= an-character-ActiveMQ-consumer-problem-tp4673926.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.