Need solution for SetEnvironmentVar problem

I am creating a custom error message to replace the error “Remote Server is not responding” that is displayed when a clustered mail server fails in notes 7. This can be accomplished by getting the hex code of the error and setting it to your custom message in the notes.ini:

Call s.Setenvironmentvar(“err_0A02”, “The server is not responding. Please close and reopen your Lotus Notes client to reconnect. If you experience problems reconnecting please contact the Global Support Center.”)

This works fine, my issue is that I need the error to be in multiple languages. I have a script that checks the users client language and uses a case statement to set the error in the notes.ini.

Case “de”

Call s.Setenvironmentvar(“err_0A02”, “Der Rechner reagiert nicht. Bitte schließen Sie und öffnen Sie Ihren Lotos-Anmerkungen Klienten wieder, um wieder anzuschließen. Wenn Sie die Probleme erfahren, die bitte Kontakt die Global Support Center wieder anschließen.”, True)

When the setenvironmentvar runs, it does not write the extended characters to the notes ini file. After the above German error runs in the script, the error message in the notes.ini looks like this noteice the extended characters.

err_0A02=Der Rechner reagiert nicht. Bitte schlieáen Sie und ”ffnen Sie Ihren Lotos-Anmerkungen Klienten wieder, um wieder anzuschlieáen. Wenn Sie die Probleme erfahren, die bitte Kontakt die Global Support Center wieder anschlieáen.

This is not a client setting issue, I can put the correct error in a messagebox and it displays correctly, it is losing the extended characters when writing to the OS using the setenvironmentvar.

Does anyone have a workaround for this? I have a ticket open with IBM but have not gotten an answer yet.

Subject: need solution for SetEnvironmentVar problem

If you are trying to write double byte or extended characters to your notes.ini using setenvirnmentvar, IBM is creating a PMR on this as it does not work.

Use the NotesStream class and append what you need with the writetext method. You will need to set the charset to the UTF-8 or the specific language you are trying to write in order to make it work.