Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Potlatch encodes the username link in History in ISO-8859-1 which causes a 500 error in rails port #2336

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: avarab[at]gmail.com
[Submitted to the original trac issue database at 10.35am, Thursday, 1st October 2009]

When I go to History->Mail for a way I've ("var Arnfjr Bjarmason") have edited Potlatch will give out a link like:

/message/new/%C6var%20Arnfj%F6r%F0%20Bjarmason

That's ISO-8859-1 not UTF-8 encoded so rails will die with this error:

ActiveRecord::StatementInvalid in MessageController#new

PGError: ERROR:  invalid byte sequence for encoding "UTF8": 0xc676
HINT:  This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".
: SELECT * FROM "users" WHERE ("users"."display_name" = E'var Arnfjr Bjarmason')  LIMIT 1
@openstreetmap-trac
Copy link
Author

Author: Richard
[Added to the original trac issue at 10.55am, Thursday, 1st October 2009]

http://www.webtoolkit.info/actionscript-utf8.html looks helpful

@openstreetmap-trac
Copy link
Author

Author: iandees
[Added to the original trac issue at 7.42pm, Monday, 9th September 2013]

Cleaning aging tickets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant