Return-Path: Delivered-To: apmail-xerces-c-dev-archive@www.apache.org Received: (qmail 43584 invoked from network); 10 Aug 2006 22:06:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2006 22:06:41 -0000 Received: (qmail 17431 invoked by uid 500); 10 Aug 2006 22:06:40 -0000 Delivered-To: apmail-xerces-c-dev-archive@xerces.apache.org Received: (qmail 17097 invoked by uid 500); 10 Aug 2006 22:06:40 -0000 Mailing-List: contact c-dev-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-dev@xerces.apache.org Delivered-To: mailing list c-dev@xerces.apache.org Received: (qmail 17086 invoked by uid 500); 10 Aug 2006 22:06:39 -0000 Delivered-To: apmail-xml-xerces-c-dev@xml.apache.org Received: (qmail 17083 invoked by uid 99); 10 Aug 2006 22:06:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 15:06:39 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 15:06:39 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id 36445714283; Thu, 10 Aug 2006 22:03:42 +0000 (GMT) From: bugzilla@apache.org To: xerces-c-dev@xml.apache.org Subject: DO NOT REPLY [Bug 24317] - DOMWriter::writeToString ignores encoding In-Reply-To: X-Bugzilla-Reason: AssignedTo Message-Id: <20060810220342.36445714283@brutus.apache.org> Date: Thu, 10 Aug 2006 22:03:42 +0000 (GMT) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=24317 mail@iceberg.pl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From mail@iceberg.pl 2006-08-10 22:03 ------- Maybe I am missing something, but writing string by DOMWriter::writeToString() in UTF-16 and actually changing the encoding in the document and outputed XML content are two separate, not necessarly connected things. I use the code as below: DOMDocument* doc; (...) doc->setEncoding(X("UTF-8")); (...) DOMWriter* writer; (...) char* XML = XMLString::transcode((writer->writeToString(*doc))); And at the end I get an UTF-8 encoded string, that starts with: Due to my humble interpretation, this is actually a bug. I am using Xerces-C 2.7.0 (why can't I select 2.6.0 and 2.7.0 in the "version" field above?). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org For additional commands, e-mail: c-dev-help@xerces.apache.org