Skip to content
Browse files

Ignore character set property and force utf-8 encoding for message co…

…ntent
  • Loading branch information...
1 parent 3b8f26b commit 97d545f1cf6dba0170bf4e99b60cfb3402029c3b Alex Buijs committed
Showing with 3 additions and 4 deletions.
  1. +2 −2 README.rdoc
  2. +1 −1 app/models/acceptatie_message.rb
  3. +0 −1 lib/processor.rb
View
4 README.rdoc
@@ -30,7 +30,7 @@ PRD:
externId : value will always be different
status : value will always be different
versie : attribute doesn't exist in acc db
- tekenset : V
+ tekenset : value will always be different
bericht_uuid : V
bericht_type : V
bericht_versie : V
@@ -57,7 +57,7 @@ ACC:
receiverType : V
externId : value will always be different
status : value will always be different
- characterSet : V
+ characterSet : value will always be different
messageId : V
messageName : V
messageType : V
View
2 app/models/acceptatie_message.rb
@@ -60,7 +60,7 @@ def self.by_id(id)
end
def content
- Base64.decode64 acceptatie_message_content.try(:volledigeInhoud) rescue nil
+ (Base64.decode64 acceptatie_message_content.try(:volledigeInhoud)).force_encoding("utf-8") rescue nil
end
def return_message
View
1 lib/processor.rb
@@ -10,7 +10,6 @@ class Processor
:betreftRetourbericht => :retourMessage,
:zenderType => :senderType,
:ontvangerType => :receiverType,
- :tekenset => :characterSet,
:bericht_uuid => :messageId,
:bericht_type => :messageType,
:bericht_versie => :messageVersion,

0 comments on commit 97d545f

Please sign in to comment.
Something went wrong with that request. Please try again.