I'm enjoying developing for Symbian at the moment quite a lot (a Symbian 7.1 device at the moment). Thanks to the community for being supportive of a newcomer.
However, I seem to have a strange error when reading a password from a secret editor. That is, instead of being getting "password" when I call GetText on my CEikSecretEditor, the debugger tells me GetText is getting L"\x4C28\x7480\xCCCC\xCCCC\x6094\x16FF\x6E18\x14C1". I thought it might be a Unicode problem, but running that value through a CnvUtfConverter::ConvertFromUnicodeToUtf() gave me complete rubbish.
Do SecretEditors store the text in an encripted format internally or something? If so, how do get it out?
Otherwise, is the code I'm using (below) incorrect?
I'm confident my iSettings lines are irrelevant here as temp has the strange value before that line.
// Get the text of the username (works fine)
CEikEdwin* userText = static_cast<CEikEdwin *>(this->Control(EDialogUserPassUser));
// Get the text of the password (THIS IS BROKEN!)
CEikSecretEditor* passText = static_cast<CEikSecretEditor *>(this->Control(EDialogUserPassPass));
passText->GetText(temp); // temp is the crazy value after this line here.
Hopefully its a simple thing for experienced Symbian developers to point out.
Thankyou for your help.