Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
thg
thg
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 802
    • Issues 802
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #5681

Closed
Open
Created Feb 02, 2021 by Christos Sevastiadis@csevast

Encoding problem during "Detect Copies/Renames" and commit procedure.

I have used in Windows 10 different codepages. The current default is OEM737, but previously was UTF-8. When different codepages have been used then the following error arises. I tried setting the ui.encoding to UTF-8 but it didn't work.

  #!python
    ** Mercurial version (5.6.1).  TortoiseHg version (5.6.1)
    ** Command: 
    ** CWD: C:\WINDOWS
    ** Encoding: cp1253
    ** Extensions loaded: closehead, fetch, histedit, gpg, largefiles, purge, strip, mq, rebase, tortoisehg.util.configitems
    ** Python version: 2.7.17 (v2.7.17:c2f86d86e6, Oct 19 2019, 21:01:17) [MSC v.1500 64 bit (AMD64)]
    ** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
    ** Processor architecture: x64
    ** Qt-5.9.9 PyQt-5.13.2 QScintilla-2.10.8
    Traceback (most recent call last):
      File "tortoisehg\hgqt\guess.pyo", line 333, in showDiff
      File "tortoisehg\util\hglib.pyo", line 165, in fromunicode
      File "encodings\cp1253.pyo", line 12, in encode
    UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-2: character maps to <undefined>
Edited Feb 02, 2021 by Matt Harbison
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None