On Tue, Feb 22, 2011 at 10:42 PM, Richard  Steele wrote:
> I'm trying to save a text file that has foreign characters.

If you want to instruct the browser to save a file instead of trying
to render it to the user, you need to set a content disposition in
combination with a MIME type of application/octet-stream. See RFC 2616
19.5.1.

Once your file is placed on the harddisk of the client computer, it is
up to the used application on the client computer to infer what
charset is in it. Some applications will just presume it is the
environment charset, some will presume it is a specific one (like
ISO-8859-1), some will try to do some logic. You may be able to help
that last category by making sure there is a BOM in your file:
http://unicode.org/faq/utf_bom.html#bom10

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342508
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to