?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
package encoding::warnings;
$encoding::warnings::VERSION = '0.11';
use strict;
use 5.007;
=head1 NAME
encoding::warnings - Warn on implicit encoding conversions
=head1 VERSION
This document describes version 0.11 of encoding::warnings, released
June 5, 2007.
=head1 SYNOPSIS
use encoding::warnings; # or 'FATAL' to raise fatal exceptions
utf8::encode($a = chr(20000)); # a byte-string (raw bytes)
$b = chr(20000); # a unicode-string (wide characters)
# "Bytes implicitly upgraded into wide characters as iso-8859-1"
$c = $a . $b;
=head1 DESCRIPTION
=head2 Overview of the problem
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 I, but unicode-strings are
downgraded with UTF-8 encoding. This happens because the first 256
codepoints in Unicode happens to agree with Latin-1.
However, this silent upgrading can easily cause problems, if you happen
to mix unicode strings with non-Latin1 data -- i.e. byte-strings encoded
in UTF-8 or other encodings. The error will not manifest until the
combined string is written to output, at which time it would be impossible
to see where did the silent upgrading occur.
=head2 Detecting the problem
This module simplifies the process of diagnosing such problems. Just put
this line on top of your main program:
use encoding::warnings;
Afterwards, implicit upgrading of high-bit bytes will raise a warning.
Ex.: C.
However, strings composed purely of ASCII code points (C<0x00>..C<0x7F>)
will I trigger this warning.
You can also make the warnings fatal by importing this module as:
use encoding::warnings 'FATAL';
=head2 Solving the problem
Most of the time, this warning occurs when a byte-string is concatenated
with a unicode-string. There are a number of ways to solve it:
=over 4
=item * Upgrade both sides to unicode-strings
If your program does not need compatibility for Perl 5.6 and earlier,
the recommended approach is to apply appropriate IO disciplines, so all
data in your program become unicode-strings. See L, L and
L for how.
=item * Downgrade both sides to byte-strings
The other way works too, especially if you are sure that all your data
are under the same encoding, or if compatibility with older versions
of Perl is desired.
You may downgrade strings with C and C.
See L and L for details.
=item * Specify the encoding for implicit byte-string upgrading
If you are confident that all byte-strings will be in a specific
encoding like UTF-8, I need not support older versions of Perl,
use the C pragma:
use encoding 'utf8';
Similarly, this will silence warnings from this module, and preserve the
default behaviour:
use encoding 'iso-8859-1';
However, note that C