CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsLiteralString(dialogTitle), pStr);
CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsDependentString(dialogTitle), pStr);
NS_IMETHODIMP CPromptService::Alert(nsIDOMWindow *parent, const PRUnichar *dialogTitle,                                    const PRUnichar *text){        StDialogHandler	 theHandler(dlog_Alert, GetParentCommander(parent));    LWindow			 *theDialog = theHandler.GetDialog();    nsCAutoString    cStr;    Str255           pStr;    CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsLiteralString(dialogTitle), pStr);    theDialog->SetDescriptor(pStr);    LStaticText	*msgText = dynamic_cast<LStaticText*>(theDialog->FindPaneByID('Msg '));    CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsLiteralString(text), cStr);    cStr.ReplaceChar('\n', '\r');   			    msgText->SetText(const_cast<char *>(cStr.get()), cStr.Length());    theDialog->Show();    theDialog->Select();		while (true)  // This is our modal dialog event loop	{						MessageT	hitMessage = theHandler.DoDialog();				if (hitMessage == msg_OK)   		break;	}    return NS_OK;}