LConvEncoding fix for CP936 and other DBCS codepages
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
Issue is described here
https://github.com/Alexey-T/CudaText/issues/2344
Issue is that cp936 skips char when converting bytes $A1 $47 to utf8.
My fix is for clone of LConvEncoding
https://github.com/Alexey-T/EncConv/commit/0044e2197859fa9920d786a4482cd8a36aa4f603
the same must be done to Lazarus
lazarus/asiancodepagefunctions.inc
function DBCSToUTF8(const s: string; const ArrayUni, ArrayCP: array of word): string;