encode to UTF8 consistently
authorDan Scott <dscott@laurentian.ca>
Fri, 17 Jun 2011 17:50:26 +0000 (13:50 -0400)
committerDan Scott <dan@coffeecode.net>
Fri, 17 Jun 2011 20:32:58 +0000 (16:32 -0400)
commit9f70287410fd7b72c8aded14b1335db57b55e6a5
treed0773a9a4ec50325c3db6fb175f4fe7d045cf3ec
parent39c0aaa28789e13ff55082307e565925b1a14fe0
encode to UTF8 consistently

In read_SIP_packet(), we decode the incoming packet as UTF8 and then
encode it again before writing to the log, but not before returning the
message. We were instead encoding the incoming message in a subsequent
call, which is not the recommended Perl practice of decoding input and
encoding output.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Sip.pm