[Israel.pm] Hebrew to UTF-8, completely out of ideas!
Moshe Kaminsky
kaminsky at math.huji.ac.il
Sun Oct 24 13:42:42 PDT 2004
* david istermann <interDist at gmail.com> [24/10/04 22:20]:
> Hi,
>
> > I don't understand where $filepath comes from ...
>
> It comes from `net files` which appears to be "windows-1255" on my system.
>
> > you can have wide to be sub { decode 'cp1255', @_ }.
>
> I tried this : return decode('windows-1255', shift @_); it didn't work
> for me. The string gets converted to something unreadable instead of
> Hebrew. Furthermore, when I print the string to stdout (בדיקה.doc in
> the original) I get 14 characters for hebrew while there should be
> only 10.
Are you sure it's not only in the output? Did you do
binmode(STDOUT, ":utf8")
before printing? Also, what is the output of Encode::is_utf8 on
$filepath? Other than that, I'm out of ideas...
Moshe
>
>
> David.
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>
--
I love deadlines. I like the whooshing sound they make as they fly by.
-- Douglas Adams
Moshe Kaminsky <kaminsky at math.huji.ac.il>
Home: 08-9456841
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://perl.org.il/pipermail/perl/attachments/20041024/b00a83db/attachment.pgp
More information about the Perl
mailing list