in reply to Re: Encode text to XML €
in thread Encode text to XML €

Found it.
use utf8;
after adding this to the header of the script, it is possible to use \x{1234} in a regexp. Thanks for all the help guys.