Bart closed the bug report.
Anyhow, this has nothing to do with LazUtf8.UnicodeToUtf8() function.
Resolving as "no change required".
I don't think that I will ever go through that process again. Too techy for me.
Please do not get discouraged by this.
It is quite allright to file bugreports.
If you are not really sure wether something is a bug or not, then better ask on forum or mailinglist.
Your bugreport claimed that LazUtf8.UnicodeToUTF8 function was wrong.
This turned out to be not the case.
Therefore I marked the issue as "no change required".
(You, as the original reporter, should close the issue.)
You may very well have an issue w.r.t. RichMemo, but this component is not part of Lazarus distribution AFAIK.
I think it is part of Lazarus-CCR.
If indeed RichMemo does not handle this correctly (ask for confirmation on this from other users), then file a new bugreport in the Lazarus-CCR section of the bugtracker.
You should
always attach a sample project (minimal case scenario, sources only, zipped), so that developers can easily reproduce your problem.
Please read
http://wiki.lazarus.freepascal.org/Tips_on_writing_bug_reports.
Bart