fixed encoding for forms
This commit is contained in:
		
							parent
							
								
									f357440898
								
							
						
					
					
						commit
						c7a4bad088
					
				| 
						 | 
					@ -28,7 +28,7 @@ module Landline
 | 
				
			||||||
      # Decode charset parameter
 | 
					      # Decode charset parameter
 | 
				
			||||||
      def decode(data)
 | 
					      def decode(data)
 | 
				
			||||||
        data = Landline::Util.unescape_html(data)
 | 
					        data = Landline::Util.unescape_html(data)
 | 
				
			||||||
        return data unless self.headers['charset']
 | 
					        return data.force_encoding("UTF-8") unless self.headers['charset']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        data.force_encoding(self.headers['charset']).encode("UTF-8")
 | 
					        data.force_encoding(self.headers['charset']).encode("UTF-8")
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue