Date: 2005-02-19 07:41 am (UTC)
netch: (Default)
From: [personal profile] netch
А не лучше ли применить вот это? (из man perlunicode)

==={{{
       "use encoding" needed to upgrade non-Latin-1 byte strings
           By default, there is a fundamental asymmetry in Perl's unicode
           model: implicit upgrading from byte strings to Unicode strings
           assumes that they were encoded in ISO 8859-1 (Latin-1), but Unicode
           strings are downgraded with UTF-8 encoding.  This happens because
           the first 256 codepoints in Unicode happens to agree with Latin-1.

           If you wish to interpret byte strings as UTF-8 instead, use the
           "encoding" pragma:

               use encoding 'utf8';

           See "Byte and Character Semantics" for more details.

===}}}

Конечно, лучше сделать чтобы вообще не было implicit upgrading, но это может оказаться проблемой сторонних модулей вроде DBI/DBD.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

netch: (Default)
netch

December 2023

S M T W T F S
     12
3456789
10111213141516
171819 20212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 22nd, 2026 07:54 pm
Powered by Dreamwidth Studios