Bart
cb9d685f79
LConvEncoding: reverts #05765da982ab46e2486c6932648c71fd692a54d5 and #01e627e35da5030ccea4406cffbdf5b67b85b0b9 and resolves issue #39348 in a different way (by always setting the target's codepage when converting to UTF8).
2021-12-16 22:11:56 +01:00
Bart
5aa4ccaa47
LazUtils: LConvEncoding: remove all code that is disabled if FPC_HAS_CPSTRING is NOT defined,
...
since we do not support compiler versions < 3.0, so FPC_HAS_CPSTRING is always defined now.
2021-12-09 22:00:25 +01:00
Bart
05765da982
LazUtils: LConvEncoding: Fix not setting target codepage in various xxxToUtf8() functions. Issue #39348 .
...
Note: ConvertAnsiToUtf8 not fixed yet.
2021-12-09 21:42:07 +01:00
juha
db94cc7a39
LazUtils: Support EUDC to PUA Microsoft mapping in function DBCSToUTF8. Issue #38206 , patch from powerpcer.
...
git-svn-id: trunk@64308 -
2020-12-30 10:27:05 +00:00
juha
2bc8095d8d
LazUtils: Fix spelling in LConvEncoding. Issue #36492 , patch from CudaText man.
...
git-svn-id: trunk@62471 -
2019-12-30 13:59:18 +00:00
juha
dd0a4014b6
LazUtils: LConvEncoding fix for CP936 and other DBCS codepages. Issue #36492 , patch from CudaText man.
...
git-svn-id: trunk@62467 -
2019-12-29 23:18:57 +00:00
juha
063096d568
LazUtils: Optimize LConvEncoding a little. Issue #36087 , patch from Alexey Tor.
...
git-svn-id: trunk@61963 -
2019-10-03 18:26:28 +00:00
juha
07607b4bba
LazUtils: Raise exception in UTF8To... functions, controlled by a global boolean. Issue #33686 , patch from AlexeyT.
...
git-svn-id: trunk@59416 -
2018-11-01 08:39:09 +00:00
juha
6810c626df
LazUtils: Change "Character" to "Codepoint" in LazUTF8 function names to be more accurate and to avoid confusion.
...
git-svn-id: trunk@56692 -
2017-12-11 19:44:22 +00:00
juha
920c072f0e
LazUtils: Add, fix and unify header comments of many units.
...
git-svn-id: trunk@52518 -
2016-06-18 16:40:04 +00:00
bart
0c8df133dd
LazUtils:
...
- An attempt to unify the defines for the different scenario's in the use of (not) codepage aware ansistrings
and the use of the "Utf8 in RTL" feature.
It makes for better separation of code and thus better readability and ease of maintainance (and in a later
stadium it makes it easier to remove code that deals with non codepage aware ansistrings (fpc < 3.0)).
- Also replace (FPC_FULLVERSION >= xxxx) with FPC_HAS_CPSTRING where appropriate.
- Replace the custom HasCP define with built in FPC_HAS_CPSTRING define.
git-svn-id: trunk@50498 -
2015-11-24 16:23:18 +00:00
juha
c831f9ecd9
LazUtils: Less notes from compiler about Asian codepages.
...
git-svn-id: trunk@50088 -
2015-10-16 21:48:15 +00:00
mattias
43bbbdf2d0
lazutils: fixed compialtion EnableUTF8RTL
...
git-svn-id: trunk@49866 -
2015-09-21 18:18:12 +00:00
mattias
9c680beb48
lazutils: lconvencoding: using system conversion only if available, extened ConvertEncodingFromUTF8 with parameter SetTargetCodePage, default is false for compatibility with code using 1.4 and below, bug #28485
...
git-svn-id: trunk@49859 -
2015-09-21 10:50:54 +00:00
juha
4285b7380f
LazUtils: Use SetCodePage() from FPC 3.x for UTF8ToXXX() functions in lconvencoding.
...
git-svn-id: trunk@49503 -
2015-07-07 11:43:23 +00:00
juha
ecd140c985
Improve license headers in sources, part 2. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
...
git-svn-id: trunk@41389 -
2013-05-25 09:22:25 +00:00
mattias
3f21a3c32a
lazutils: renamed functions DBCSToUTF8, UTF8ToDBCS, fixed dbcs last char, using half space for asian tables
...
git-svn-id: trunk@38241 -
2012-08-14 21:01:39 +00:00
mattias
9c9f62c013
lazutils: less hints
...
git-svn-id: trunk@35802 -
2012-03-07 11:55:37 +00:00
sekelsenmat
3ffd9d2af9
Moves lconvencoding.pas from the LCL to LazUtils
...
git-svn-id: trunk@32942 -
2011-10-17 11:36:24 +00:00