[Israel.pm] Hebrew to UTF-8, completely out of ideas!

Shlomi Fish shlomif at iglu.org.il
Fri Oct 22 13:29:24 PDT 2004

On Friday 22 October 2004 21:56, david istermann wrote:
> Hi all,
> I'm facing a problem which you may have encountered before and know
> how to solve quickly the issue.
> On Windows 2000 machine:
> I'm getting input by `net file` which describes what shares are open
> right now. Next, i'm building an XML from this data (combined with
> other info from the system) and output it to c:\servstate.xml , which
> should be in Unicode. XML processing is done via XML::Simple.
> The problem arises when there are any files named in Hebrew.
> Apparently, the shell outputs these names as WINDOWS-1255 and so they
> appear as funny symbols in the final XML.
> Neither the technique described by Shlomo Yona, nor playing with any
> possible combination of 'encode' and 'decode' helped. I either get
> ????, or meaningless symbols, or empty squares...
> After reading tons of perl documentation, I have no useful ideas at
> all. What should I do?!

Well, you can first try outputting the XML using string concatenation, and not 
using XML::Simple. XML::Simple is Evil if you ask me.


	Shlomi Fish

> Thanks in advance,
> David.
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl


Shlomi Fish      shlomif at iglu.org.il
Homepage:        http://www.shlomifish.org/

Knuth is not God! It took him two days to build the Roman Empire.

More information about the Perl mailing list