I'm trying to print the copyright circle C ( © ) into an output file (company requirement). I declare the first part of the copyright notice in a #define

Qt Code:
  1. #define COPYRIGHT_PREFIX "\xA9 Copyright"
  2. #define COPYRIGHT_SUFFIX "Company Name. All Rights Reseved."
To copy to clipboard, switch view to plain text mode 

I then put it into a QString along with the year and then output it to a QDomDoc in the form of a QDomComment.

Qt Code:
  1. QDomComment copyrightComment;
  2. QDate copyrightDate = QDate::currentDate( );
  3. QString copyrightString;
  4.  
  5. copyrightString.sprintf( "%s%d%s", COPYRIGHT_PREFIX, copyrightDate.year( ), COPYRIGHT_SUFFIX );
  6.  
  7. /* I created the document earlier */
  8. copyrightComment = outDoc.createComment( copyrightString );
To copy to clipboard, switch view to plain text mode 

When the comment in the document gets output to a file, I don't get the ©, but just get two question marks printed out ( ?? ). Is there something that I'm forgetting to do? Do I have to make use of one of the QString functions (I've tried .ascii( ) )?

Any help is appreciated.