UTF8Encode/Decode should work with UTF-16 and not UCS-2
Original Reporter info from Mantis: sekelsenmat
-
Reporter name: Felipe Monteiro de Carvalho
Original Reporter info from Mantis: sekelsenmat
- Reporter name: Felipe Monteiro de Carvalho
Description:
Hello,
The current implementation of UTF8Encode/Decode will assume that the widestring is encoded in UCS-2, while it should actually be UTF-16. Just a reminder, as discussed in the mailling lists.
The UTF8ToUTF16 and similar routines in Lazarus can be used as an example.
thanks,
Mantis conversion info:
- Mantis ID: 11976
- Version: 2.2.2