[Ror-es] ActionMailer: attachment con filename en UTF8

Guillermo guillermo at cientifico.net
Tue Sep 30 13:59:32 GMT 2008


El email te dice que es base64 aquí:

> Content-Transfer-Encoding: base64

Por lo que simplemente descodificas base 64

irb
>> require 'base64'
=> true
>> Base64.decode_b "=?utf-8?B?SU1HMDAwOTkuanBn?="
=> "IMG00099.jpg"
>> Base64.decode_b "hola"
=> "hola"

No se si es eso lo que preguntas.


-- 
Guillermo Álvarez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.simplelogica.net/pipermail/ror-es/attachments/20080930/bf614745/attachment.htm 


More information about the Ror-es mailing list