Solved

Non-English encoding in Jmail

Posted on 2007-04-10
4
741 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
[X]
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
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

626 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