in reply to UTF in Perl
Sometimes it throws error which i am unable to trace
And what's the text of the error message?
I agree with oshalla that Encode is the way to go. You simple decode($encoding, $string) every string that comes from the outside, and encode($encoding, $string) stuff before you write it it. (Or if your XML module is smart enough you just pass the decoded string to the module).
See also Character encodings and perl, perluniintro, perlunifaq, perlunicode, Encode.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: UTF in Perl
by KarthikK (Sexton) on Oct 10, 2008 at 14:17 UTC | |
by moritz (Cardinal) on Oct 10, 2008 at 14:41 UTC | |
by KarthikK (Sexton) on Oct 10, 2008 at 14:56 UTC | |
by moritz (Cardinal) on Oct 10, 2008 at 15:07 UTC | |
by KarthikK (Sexton) on Oct 13, 2008 at 07:16 UTC | |
|
Re^2: UTF in Perl
by KarthikK (Sexton) on Oct 10, 2008 at 12:45 UTC |