FAQ
What's the current thought on the filename value?

RFC2183 says the values should be 78 chars and limited to ASCII. 2184 and
then 2231 discuss encoding but not clear how well supported.
See http://greenbytes.de/tech/tc2231/ for various tests on browsers.

Should I limit to 78 "characters" and then percent-encode the encoded utf8
string?

uri_escape( encode( 'UTF-8', substr($name, 0, 78) ) );

Or encode to US-ASCII and let encode replace non ASCII with "?"? That seems
ugly.



Too bad HTTP::Headers doesn't abstract all this out.



--
Bill Moseley
moseley@hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101202/0f775af9/attachment.htm

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedDec 2, '10 at 11:31p
activeDec 2, '10 at 11:31p
posts1
users1
websitecatalystframework.org
irc#catalyst

1 user in discussion

Bill Moseley: 1 post

People

Translate

site design / logo © 2022 Grokbase