When the target codepage is UTF8, the SysFromUnicode function terminated with the return code
- 87, when no mapping flags
- 1004, when any combination of the supported flags.
The function work well in the R3 (I am not sure the specific release#. maybe R320?).
There seems to have been a fixed defect (ID: 1440558) similar to mine in R3.
Ref: The bug in R3 (https://sourceforge.net/tracker/index.php?func=detail&aid=1440558&group_id=119701&atid=684730)