Re: Interpretation of non-UTF8 strings

[email protected] (Marcin 'Qrczak' Kowalczyk)
Newsgroups perl.unicode
Message-ID <1092664443.19848.555.camel@qrnik>
W liście z pon, 16-08-2004, godz. 16:31 +0300, Jarkko Hietaniemi
napisał:

> > In summary, some parts of Perl treat non-UTF-8 scalars as ISO-8859-1,
> > while others treat is as whatever is expected by default in files and
> > filenames and commandline (the locale tells what it is). It should be
> > decided one way or the other, otherwise generic code doesn't know how to
> > interpret Perl scalars it encounters.
> 
> "generic code"?  If you mean Perl, you can use utf8::is_utf8().  If you
> mean XS, you can use SvUTF8().

I mean XS. If SvUTF8 is false, I don't know whether to interpret the
contents as ISO-8859-1 or according to the locale.

-- 
   __("<         Marcin Kowalczyk
   \__/       [email protected]
    ^^     http://qrnik.knm.org.pl/~qrczak/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.