Lazarus

Programming => General => Topic started by: MISV on September 15, 2020, 07:18:03 pm

Title: UTF8toKOI8 and KOI8toUTF8 not found in OEncoding
Post by: MISV on September 15, 2020, 07:18:03 pm
I just updated Lazarus. I now get the error that

UTF8toKOI8 and KOI8toUTF8 are missing

(I get the error in OEncoding unit in routine UTF8ToCodePage and CoePageToUTF8)

What have they been replaced by? :)
Title: Re: UTF8toKOI8 and KOI8toUTF8 not found in OEncoding
Post by: sstvmaster on September 16, 2020, 06:48:16 pm
You must use unit LazUtils (LConvEncoding), here you can see all identifiers:

https://lazarus-ccr.sourceforge.io/docs/lazutils/lconvencoding/index-8.html
Title: Re: UTF8toKOI8 and KOI8toUTF8 not found in OEncoding
Post by: JuhaManninen on September 16, 2020, 09:05:19 pm
UTF8toKOI8 and KOI8toUTF8 are missing
(I get the error in OEncoding unit in routine UTF8ToCodePage and CoePageToUTF8)
What have they been replaced by? :)
Where is unit OEncoding?

Please see r63354,
 "LazUtils: Support KOI8-R, KOI8-U and KOI8-RU codepages in LConvEncoding. Issue #37155, patch from eastorwest."
Issue #37155: https://bugs.freepascal.org/view.php?id=37155

The encoding table KOI8 and functions were not only replaced but also fixed and improved as indicated in the bug report.
We can add deprecated functions with the old names if need be. Is it needed? Should they refer to the respective KOI8-R functions?
TinyPortal © 2005-2018