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
[email protected]
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to