File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -898,9 +898,14 @@ for details about how charset is determined.
898
898
899
899
=item $mess->decoded_content( %options )
900
900
901
- Returns the content with any C<Content-Encoding > undone and for textual content
902
- the raw content encoded to Perl's Unicode strings. If the C<Content-Encoding >
903
- or C<charset > of the message is unknown this method will fail by returning
901
+ Returns the content with any C<Content-Encoding > undone and, for textual content
902
+ (C<Content-Type > values starting with C<text/ > , exactly matching
903
+ C<application/xml > , or ending with C<+xml > ), the raw content's character set
904
+ decoded into Perl's Unicode string format. Note that this
905
+ L<does not currently|https://github.com/libwww-perl/HTTP-Message/pull/99>
906
+ attempt to decode declared character sets for any other content types like
907
+ C<application/json > or C<application/javascript > . If the C<Content-Encoding >
908
+ or C<charset > of the message is unknown, this method will fail by returning
904
909
C<undef > .
905
910
906
911
The following options can be specified.
You can’t perform that action at this time.
0 commit comments