mbeijen / App-OTRS-CreateTicket

Create tickets in OTRS via the Ticket Connector from the command line (CLI).
12 stars 6 forks source link

Charset error #2

Closed TitovLab closed 9 years ago

TitovLab commented 9 years ago

Many thanks for your work and knowledge. There are some errors with Russian characters in otrs.CreateTicket.pl For example, if queue in OTRS named in Russian, otrs.CreateTicket.pl will not work. If queue named in English, then ticket will be created, but OTRS create auto response in wrong charset: default I modified two lines in otrs.CreateTicket.pl, after that all fine, but I am not a programmer and don't know Perl and newer work with SOAP. Maybe you can do it better? Modified line in "for my $Element (@TicketFields)" and "for my $Element (@ArticleFields)": my $Param = SOAP::Data->type("string")->name( $Element => $Param{$Element} );

mbeijen commented 9 years ago

Hi, thanks a lot for your bug report.

I was able to reproduce the issue using some Russian text. I patched the otrs.CreateTicket.pl script to now force the attributes to string and put a new version on CPAN.

Kindest regards,

Michiel