Skip to content

Commit

Permalink
Ignore character set property and force utf-8 encoding for message co…
Browse files Browse the repository at this point in the history
…ntent
  • Loading branch information
Alex Buijs committed Apr 28, 2012
1 parent 3b8f26b commit 97d545f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.rdoc
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/models/acceptatie_message.rb
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/processor.rb
Expand Up @@ -10,7 +10,6 @@ class Processor
:betreftRetourbericht => :retourMessage,
:zenderType => :senderType,
:ontvangerType => :receiverType,
:tekenset => :characterSet,
:bericht_uuid => :messageId,
:bericht_type => :messageType,
:bericht_versie => :messageVersion,
Expand Down

0 comments on commit 97d545f

Please sign in to comment.