[OpenStreetMap] #4163: rails/postgres error when sending message with special character

OpenStreetMap trac at openstreetmap.org
Tue Dec 27 20:51:07 GMT 2011


#4163: rails/postgres error when sending message with special character
----------------------+-----------------------------------------------------
 Reporter:  woodpeck  |       Owner:  rails-dev@…                
     Type:  defect    |      Status:  new                        
 Priority:  minor     |   Milestone:                             
Component:  website   |     Version:                             
 Keywords:            |  
----------------------+-----------------------------------------------------
 I am relaying this message from the German forum:

 http://forum.openstreetmap.org/viewtopic.php?pid=210395#p210395

 Someone tried to send a message through user-to-user-messaging and got a
 strange "PGError: ERROR:  invalid byte sequence for encoding "UTF8": 0xfc"
 message. 0xfc is ISO-8859-1 for a common German special character (ü). I
 can send messages containing that letter with no problem. I suspect that
 for some reason if a browser doesn't send UTF-8 but ISO-8859-1 then it
 breaks. No idea if this is the browser's or server's fault though!

 I recommended not using special characters as a workaround.

-- 
Ticket URL: <https://trac.openstreetmap.org/ticket/4163>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the rails-dev mailing list