How to Specify Translation for Multi Line Text

One of my applications includes a procedure for the user which is a multi line text. I have tried to paste the multi line text into a single entry in the Application Language module. However, the generation of the application code does not work – probably because the procedure text includes double quotes and line breaks are lost in any case. Thus I thought that I would just specify the text in the “onLoadAll” event, using PHP’s heredoc (<<<) with text being assigned based on the language chosen by using the sc_get_language macro. This kind of works, but with a little kink that I can’t get rid of:

Characters above ASCII 127 are not displayed correctly. They look like some ANSI Windows – utf8 conversion problem, i.e. a file in one of these format opened as the other.

I have tried to use the PHP function utf8_encode and utf8_decode on the text field, unfortunately to avail.

Anyone has experienced similar, and perhaps found a way to deal with it?

I found the reason for the problem:
The default locale/language for the project was defined as English with character set utf8. When I added more locales for another language, the charset was per default set to ISO8859-1 and not utf8. Changing the charset for the new language to utf8 fixed the issue.

So, there is no problem specifying longer multi line text using PHP’s HEREDOC.