[Rt-devel] search with international chars

Ruslan U. Zakirov cubic at acronis.ru
Wed Jun 9 13:04:34 EDT 2004


		Hello.
Small test case for bug with UTF in search
DBIx::SB workaround patch
			Ruslan.

-------------- next part --------------
#!/usr/bin/perl
use lib "/opt/rt3/lib";

use RT;
RT::LoadConfig;
RT::Init;

use RT::Ticket;
use RT::Tickets;

# 'test' in Russian
my $subj = "\x{442}\x{435}\x{441}\x{442}";

my $t = RT::Ticket->new( $RT::SystemUser );
$t->Create( Queue => 'test', Subject => $subj );
my $ts = RT::Tickets->new( $RT::SystemUser );
$ts->Limit( FIELD => 'Subject', OPERATOR => '=', VALUE => $subj );
print "Tickets " . $ts->Count ."\n";


-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbix-utf-quote-workaround.patch
Type: application/aegis-patch
Size: 698 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20040609/4f64fe5c/dbix-utf-quote-workaround.bin


More information about the Rt-devel mailing list