danbetz
30th July 2007, 13:11
Hi,
I want to save utf8 encoded QString's in a class called letter. I set the encoding in the constructor. Unfortunately, this means that the first object has already been initialized with the default encoding when the execution of the constructor reaches this statement. Thus, the first element has always the default (wrong) encoding. This is probably more of a C++ issue but I would nonetheless be very grateful if someone points me to a suitable solution.
I know, it would be better to write the files in latin1 instead of utf8 but yet, I would like to do it this way ... for various reasond.
Thanx in advance
Daniel Betz
I want to save utf8 encoded QString's in a class called letter. I set the encoding in the constructor. Unfortunately, this means that the first object has already been initialized with the default encoding when the execution of the constructor reaches this statement. Thus, the first element has always the default (wrong) encoding. This is probably more of a C++ issue but I would nonetheless be very grateful if someone points me to a suitable solution.
I know, it would be better to write the files in latin1 instead of utf8 but yet, I would like to do it this way ... for various reasond.
Thanx in advance
Daniel Betz