X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/373a61056389d0b486fd4b1229fbe915c164b9b7..6f102f2726ad73c4c5f90bda1e7ec5f74774a7bb:/lib/potlatch.rb diff --git a/lib/potlatch.rb b/lib/potlatch.rb index 35a60dfbb..359492fa7 100644 --- a/lib/potlatch.rb +++ b/lib/potlatch.rb @@ -107,7 +107,7 @@ module Potlatch # Encode string with two-byte length def self.encodestring(n) - n=n.dup.force_encoding("ASCII-8BIT") + n=n.dup.force_encoding("ASCII-8BIT") if n.respond_to?("force_encoding") a,b=n.size.divmod(256) a.chr+b.chr+n end