> nsCString charset; > nsCOMPtr<nsIDocument> doc = do_QueryInterface(aDocument); > NS_ASSERTION(doc, "Need a document"); > nsCString charset= doc->GetDocumentCharacterSet();
Is there a reason you're not using the DOM API here instead of the more-or-less internal nsIDocument interface? If you were, you'd be getting back an nsAString and shouldn't have any problems, right? -Boris _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
