gitit icon indicating copy to clipboard operation
gitit copied to clipboard

Link containing apostrophe/single quote mark needs special handling

Open ed2 opened this issue 11 years ago • 7 comments

The gitit system as installed includes a Front Page with a link to the "Gitit User's Guide". This link is coded as "Gitit User's Guide" in the markdown, and it does not work: it takes you to a page-creation page, where the apostrophe in the title is displayed as a closing rounded single quote mark.

If you change the markdown code to "[Gitit User's Guide](Gitit User's Guide)", it all works fine, and the apostrophe in the page title is displayed as a straight single quote mark.

The former case should work correctly.

ed2 avatar Mar 18 '14 23:03 ed2

I found what might be a similar problem (will open another bug if it's not related, of course!): If I create a link thus within a page: Owners' Club … clicking on the link in order to create the new page and start to edit it produces an error: “Server error: git: recoverEncode: invalid argument (invalid character)”.

The link is https://server/gitit/Owners%E2%80%99%20Club

… which shows that the ' has been converted to a ’, making this look like the same bug.

This with gitit 0.9-1ubuntu1 of Ubuntu 12.04LTS.

gallafent avatar Apr 22 '14 14:04 gallafent

I think I am experiencing a similar problem. The link generated contains a unicode ’ (Hex 2019) instead of a single quote in the URL. I'm using ed2's work around.

The error message is

Happstack 7.3.8

Something went wrong here
Internal server error
Everything has stopped

The error was "git: recoverEncode: invalid argument (invalid character)"

gitit version 0.10.5.1 on Ubuntu Trusty

memming avatar Nov 04 '14 15:11 memming

I experience HTTP 500 errors with this message:

Happstack 7.3.7

Something went wrong here
Internal server error
Everything has stopped

The error was "git: recoverEncode: invalid argument (invalid character)"

This happens when:

  • I try to visit a wiki link to another page with a German umlaut in its name.
  • I upload a file and use a German umlaut in the description field.

The first one has already worked before, but doesn't anymore (I'm now on gitit v0.10.4 on Debian; not sure about the version that was in use before). That's actually how I created the pages with names containing umlauts in the first place.

Maybe it's not gitit itself, but one of its dependencies that broke and needs to be updated?

homeworkprod avatar May 13 '15 02:05 homeworkprod

Check your locale. The server should be running in a UTF-8 locale.

jgm avatar May 13 '15 04:05 jgm

@jgm, thanks for the pointer!

Another change in between was that I run gitit now via supervisord.

The following line in my supervisord configuriation file to run gitit fixed the problem (setting the locale to de_DE.UTF-8, in my case):

[program:gitit]
…
environment = LANG=de_DE.UTF-8

homeworkprod avatar May 14 '15 16:05 homeworkprod

(Current problem) nothing to do with the locale. Please see #509.

wouteroostervld avatar Aug 24 '15 11:08 wouteroostervld

Can this now be closed?

jgm avatar Aug 24 '15 16:08 jgm