Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 829
    • Issues 829
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • 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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking