Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Unicode

Thread Tools

Perl Unicode

Hans Scholte
Posts: n/a

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?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl 5.8 and Perl 5.10 Porting - Unicode Error Aqua Perl Misc 3 04-11-2011 03:22 AM
os.lisdir, gets unicode, returns unicode... USUALLY?!?!? gabor Python 13 11-18-2006 09:23 AM
Unicode digit to unicode string Gabriele *darkbard* Farina Python 2 05-16-2006 01:15 PM
unicode wrap unicode object? ygao Python 6 04-08-2006 09:54 AM
Unicode + jsp + mysql + tomcat = unicode still not displaying Robert Mark Bram Java 0 09-28-2003 05:37 AM