473,396 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

No croatian characters in email body using CDO

Hi to all...
I'm new here, so don't be mad if there is already a solution for my problem.
Tnx ;))...

So, here it comes.
I administrate a portal where end user can register an upcoming event, and that registration form is sent to my mail (so I can authorize it).

I'm using a CDO.Message method and there is no problem with that...
The user fills out the form, sends it, and mail arrives in my mailbox.

The problem is, as it is a croatian portal, there are no croatian characters in the BODY of the email.
The thing I was surprised with is that there ARE croatian characters in the SUBJECT of the email (using the same field in the subject and later in the body), but later in the body no CRO characters...

I tried to change charsets from windows-1250, ISO latin 2 to UTF-8 but am getting the same results...CRO chars in subject, but none in the body...the only change is appearance of those substitutional characters...
Also i put an accept-charset option directly to the form, changing charsets, but no change.

Please help!!!

p.s. here is the code:

<%@ Language="VBscript" %>
<% Option Explicit %>

<%
dim sch, cdoConfig, cdoMessage

sch = "http://schemas.microsoft.com/cdo/configuration/"

Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "mail.xxx.hr"
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "info@xxx.hr"
.To = "info@xxx.hr"
.Subject = "CakovecOnline.com - prijavljeno zbivanje - " & Request.Form("naziv")
.HTMLBody = "<b>Poslano:</b> " & FormatDateTime(now, 0) & "<br><br><b>Naziv:</b> " & Request.Form("naziv") & "<br><b>Datum:</b> " & Request.Form("datum") & "<br><b>Mjesto:</b> " & Request.Form("mjesto") & "<br><b>Vrijeme:</b> " & Request.Form("vrijeme") & "<br><b>Više o programu:</b> " & Request.Form("vise-o-programu") & "<br><br><b>Organizator:</b> " & Request.Form("organizator") & "<br><b>Web stranice:</b> " & Request.Form("web-stranice") & "<br><b>Pošiljatelj:</b> " & Request.Form("posiljatelj")
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing

response.redirect ("zbivanje-poslano.asp")
%>
Dec 8 '09 #1
3 2672
CroCrew
564 Expert 512MB
Bottome line; do you want the Croatian characters or not in the email?

Bok,
CroCrew~
Dec 11 '09 #2
yes, I want Croatian characters in the mail...
but I found the problem...as I was testing this script on iMac, it was the problem in it's own Mail application...
later i tested the same on a Windows platform, and there were Croatian characters in the body of the mail, so i think there is a bug on Mac with Croatian layout...

tnx anyway ;)
Dec 14 '09 #3
CroCrew
564 Expert 512MB
NP, all the best with your website.

CroCrew~
Dec 14 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: ,hj | last post by:
From: ",hj" <webmaster@mail.com> Subject: Losing random characters in HTML email Date: 28 November 2003 17:21 I've narrowed down my code as much as I can so that I can show you this bug. The...
17
by: Pikkel | last post by:
i'm looking for a way to replace special characters with characters without accents, cedilles, etc.
6
by: mike | last post by:
I have created a side application in VB.NET which reads rows from a DB and builds an email message. when i have a long string the the mailmessage.body or the mailmessage, it puts in an...
2
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends -...
5
by: Muhammad Ahmad | last post by:
I have an aspx page where user fill-in fields and then hit submit button. All text and text values are in Japanese Language(Shift-JIS). This page sends an email to outlook users. Once user receives...
6
by: Viktor Zadro | last post by:
How to do croatian MessageBox in vb.NET.
6
by: chris_fieldhouse | last post by:
Hi, I have a script for processing emails, The script finds email sent to a particular alias, grabs the body text of the email and stores it into a database. Problem is that certain character...
8
by: david.lindsay.green | last post by:
Hello all, I am quite new a web scripting and making web pages in general and I have stumbled across a problem I have as yet been unable to solve. I am trying to take the contents of a textarea box...
1
by: Zvonko Biąkup | last post by:
Hi! I want to check the text field if it contains only alphanumerical values and not space. But I use special characters in croatian language (iso-8852-2) and when you enter such a charactzer,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.