Velocity Reviews

Velocity Reviews (
-   Perl (
-   -   Perl Unicode (

Hans Scholte 01-27-2004 10:36 AM

Perl Unicode

I'm parsing an XML file wich contains some unicode. When I'm reading a
textnode with a bit of unicode inside and keep it in a variable then, when I
try rereading the same textnode with the aid of the variable then I cannot
read back the node.
Let me try to explain:

I have the following xml document:
<value>foo / bar</value>

the second ID element contains four bytes, representing some unicode.
$DOM represent the documentinstance

trying to preserve the ID value with $tmp =
$DOM->selectSingleNode('ID')->{'text'} leaves me with a smaller string then
the original four characters. I cannot re-read with
Anybody any idea?


All times are GMT. The time now is 01:19 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.