Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,094
    • Issues 2,094
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

We will soon be undergoing scheduled maintenance to our database layer. We expect GitLab.com to be unavailable for up to 2 hours starting from 2022-07-02 06:00 UTC. Please note that any CI jobs that start before the maintenance window but complete during the window period will fail and may need to be started again.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #39348
Closed
Open
Created Sep 01, 2021 by Denis Kozlov@dezlov

ConvertEncoding to UTF8 does not set the string code page

LConvEncoding.ConvertEncoding(~, ~, 'UTF8', True) and LConvEncoding.ConvertEncodingToUTF8 do not set a correct string code page for the result. The code page gets inherited from the input string. The end result is a corrupted string.

Broken in:

  • Lazarus 2.3.0 rmain-2_3-321-g5ae19e4e FPC 3.2.0 i386-win32-win32/win64
  • Lazarus 2.0.12 r64642 FPC 3.2.0 i386-win32-win32/win64

Works correctly in:

  • Lazarus 2.0.4 r61665 FPC 3.0.4 i386-win32-win32/win64

Sample code will be attached in comments.

Assignee
Assign to
Time tracking