Print a backslash in Unicode via perl

Daniela Duerbeck <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Organization GMX
Message-ID <[email protected]>
Hi!

When I print out unicode glyphs from a font everything is fine, aside 
from  the backslash:

use Image::Magick;
$image = Image::Magick->new;
$image->Set(size=>'150x150');
$image->ReadImage('xc:white');
$image->Annotate(font=>"times.ttf", 
pointsize=>30,align=>Left,fill=>'black', x=>50, y=>50, text=>"\x{005b} 
\x{005c} \x{005d}");
$image_name="backslash.gif";
$image->Write(filename=>$image_name);

The font has a backslash on the position 005c (I used the times.ttf that 
came with Windows) and checked it in a font editor.
Can anybody tell me what I am doing wrong? Should this backslash also be 
somehow escaped and if yes, how?

Thanks a lot in advance,
Dani
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.