Last post Nov 20, 2006 09:29 PM by tisa
Nov 17, 2006 09:14 PM|tisa|LINK
i have one function for sending the email to customer. at the beginning , i just send it in different language according the website language, such as japan, USA, HK and so on. So if the customer is come from japan, when she get the email, the words in email
may be become unreadable words, so she need to change the encoding back to japan word such as Shift-JIS. Because of this i need to define the locale id and i found that the locale id for japn is 932 and it is work when i get the email and the outlook change
the encoding to japan(auto) automatically, but some thing was happened. all words in email become unreadable!. I found the reason , it is the charset problem in email header. at the beginning, the charset is "iso-8859-1" (the word can be read when the encoding)
, but when i use the locale id the charset is "iso-2022-jp" (words can't read even encoding to japan(auto)) . So Now i just want to know how can i set the header charset to "iso-8859-1".
thank a lot!!!
Nov 19, 2006 03:03 PM|vivek_iit|LINK
You can change the request/response encoding in the web.config file as:
This link might offer more help:
Nov 19, 2006 08:51 PM|tisa|LINK
hi Vivek, thanks for your reply[:)].
for your solution, my company is not allow me to change the config file.
is that anyway can use to change the email header for sending email function?( i am using cdonts.NewMail)
i just know can set the locale id but dont know how to set the email header to "Shift_JIS". Also i found that the if the email is sent with locale id 932 (Japan), the header charset is "iso-2022-jp", why it is not "Shift_JIS"?
thank a lot!
Nov 19, 2006 08:59 PM|tisa|LINK
actually my website is using Shift_JS encoding, can i change the email body to iso-2022-jp encoding?
Nov 19, 2006 10:12 PM|tisa|LINK
I dont understand that why i change the locale id to 932, the email content become unreadable (my website is SHIFT_JS encoding).
Nov 20, 2006 05:17 AM|tisa|LINK
now i try to use another method to send the email, that's MailMessage(). i just want to know how to set the locale id in mailMessage() function.?
Nov 20, 2006 07:20 AM|vivek_iit|LINK
You can set the encoding declaratively at page level too: <% Page requestEcnoding="value" %>
Check this link:
Nov 20, 2006 09:29 PM|tisa|LINK