Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Non-English encoding in Jmail

Posted on 2007-04-10
4
732 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

765 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