Solved

Non-English encoding in Jmail

Posted on 2007-04-10
4
725 Views
Last Modified: 2012-08-13
hi,

i'm sending a hebrew ASP page as a newsletter using Jmail.... i had a problem that all the text was showing garbled when the mail arrived.

kelvinwkw showed me that using server.htmlencode on the dynamic parts of the page displayed it correctly.

my problem now is that are a few lines of text on this asp page which are not taken from a database and these are still showing garbled when the mail is received....

i tried <%=Server.HTMLEncode(Response.Write("hebrew text here"))%> but the text still does not display.

any suggestions?

thanks

dog
0
Comment
Question by:dog_star
  • 2
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
kelvinwkw earned 250 total points
ID: 18882696
Hi,

What if you save the file in utf-8 format?


Best Regards
Kelvin
0
 

Author Comment

by:dog_star
ID: 18884810
hi,

thanks for your reply...

i should have given a little more info in my original post....

i am using utf-8 as the encoding and the page displays correctly in the browser... in Jmail i have defined the encoding with this :

msgTemplate.ContentType = "text/html; charset=UTF-8"
'msgTemplate.ContentTransferEncoding = "65001"
msgTemplate.Charset = "utf-8"

as you can see i commented out the middle line as i found it made no difference.

cheers

dog
0
 
LVL 11

Expert Comment

by:kelvinwkw
ID: 18886437
Hi,

to ensure the hebrew text to display correctly in a file, you have to saved the file format as utf-8, but not as ANSI format.

Best Regards
Kelvin
0
 

Author Comment

by:dog_star
ID: 18888236
hi kelvin,
yes, the page was saved as utf-8...
i've found why the example i gave in the OP didn't work... i used

<%=Server.HTMLEncode(Response.Write("hebrew text here"))%>

where all i needed to use was

<%=Server.HTMLEncode("hebrew text here")%>

pretty silly really....
so thanks for your help kelvin... i've given you the points for your trouble as it was your solution just i'd implemented it incorrectly :)

cheers

dog
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now