projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.0.22
[freeside.git]
/
rt
/
t
/
web
/
rest-non-ascii-subject.t
diff --git
a/rt/t/web/rest-non-ascii-subject.t
b/rt/t/web/rest-non-ascii-subject.t
index
8b870a8
..
0d3e14d
100644
(file)
--- a/
rt/t/web/rest-non-ascii-subject.t
+++ b/
rt/t/web/rest-non-ascii-subject.t
@@
-3,8
+3,6
@@
use strict;
use warnings;
use RT::Test tests => 9;
use warnings;
use RT::Test tests => 9;
-use Encode;
-# \x{XX} where XX is less than 255 is not treated as unicode code point
my $subject = Encode::decode('latin1', "Sujet accentu\x{e9}");
my $text = Encode::decode('latin1', "Contenu accentu\x{e9}");
my $subject = Encode::decode('latin1', "Sujet accentu\x{e9}");
my $text = Encode::decode('latin1', "Contenu accentu\x{e9}");
@@
-32,8
+30,7
@@
Text: $text";
$m->post("$baseurl/REST/1.0/ticket/new", [
user => 'root',
pass => 'password',
$m->post("$baseurl/REST/1.0/ticket/new", [
user => 'root',
pass => 'password',
-# error message from HTTP::Message: content must be bytes
- content => Encode::encode_utf8($content),
+ content => Encode::encode( "UTF-8", $content),
], Content_Type => 'form-data' );
my ($id) = $m->content =~ /Ticket (\d+) created/;
], Content_Type => 'form-data' );
my ($id) = $m->content =~ /Ticket (\d+) created/;