wxRichTextPrinting and character encoding

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
medienluemmel
Earned a small fee
Earned a small fee
Posts: 20
Joined: Mon Jun 19, 2006 6:56 pm

wxRichTextPrinting and character encoding

Post by medienluemmel »

Hello everybody,

I'm trying to user wxRichTextPrinting to print out the content of a wxRichTextCtrl. The code ist like this:

Code: Select all

	wxRichTextPrinting *rtp = new wxRichTextPrinting ();
	wxRichTextBuffer buf = richtextctrl->GetBuffer ();
	rtp->PreviewBuffer (buf);
	//rtp->PrintBuffer (buf);
I'm having German special characters (umlaut) like ä, ö, ü, ß in my text. In the preview-Window of wxRichTextPrinting, everything shows correctly, but when I print out the text, all the special characters are scrambled, for example the German "ü" will become "ü".

What am I doing wrong - and: Is there any way to solve this problem?

Thanks for your help!
Post Reply