Solved

Non-English encoding in Jmail

Posted on 2007-04-10
4
721 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
Comment Utility
Hi,

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


Best Regards
Kelvin
0
 

Author Comment

by:dog_star
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

10 Experts available now in Live!

Get 1:1 Help Now