Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accented caracters in a user filled form

Status
Not open for further replies.

ITCPhil

Technical User
Jun 30, 2005
181
CA
Hi,

I am trying to figure out how to get french accents to appear correctly when data is forwarded to an Outlook message.

I will explain as best I can. We use a web form when our ticketing system is down where the help desk staff can fill in tickets and then mail it to their mailbox. What happens here is that even though the fields allow for any caracter, once it is sent to the Email message if they have used French caracters such as èéçâ or any other, it won't print correctly.

For example, ç turns into ç and é turns into é.

Is there a way to have Outlook read these correctly? This is the gyst of the code used:

document.write('<html>\n<head>\n<title>Report A Problem</title>\n</head>\n<body>\n<CENTER><h1><font face="Arial,Helvetica"><font color="#0066CC">SRMIS Contingency Form</font></font></h1><H2><I>Please read carefully:</I></H2><br><table BORDER=0 COLS=1 WIDTH="90%"><tr><td>Text here.</td></tr></table><br>\n<table WIDTH="70%" border="2" cellpadding="5" bordercolor="#3399cc" bordercolordark="#000000"><tr><td><form NAME="REPORT_PROBLEM" method="post" enctype="text/plain" action="mailto:*@*.*?subject=' ...

I am guessing it has to do with the 'enctype="text/plain"' but I don't know much at all about HTML/Javascript

Any ideas?
 
have you tried removing that encoding type? it worked fine for me without it. also, is there a reason you're document.writing all of this?



*cLFlaVA
----------------------------
[tt]( <P> <B>)[sup]13[/sup] * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
The encode is needed to send the information as text to my message in Outlook. Otherwise it attachs it and in there it still doesn't show the accents correctly.

Document.writing I'm a bit embarrased to say I do not know what it does. It might be because the text appears in a second form to confirm and from there you hit send.

Here, let me paste the rest of the code :

document.write('<html>\n<head>\n<title>Report A Problem</title>\n</head>\n<body>\n<CENTER><h1><font face="Arial,Helvetica"><font color="#0066CC">SRMIS Contingency Form</font></font></h1><H2><I>Please read carefully:</I></H2><br><table BORDER=0 COLS=1 WIDTH="90%"><tr><td>Text here.</td></tr></table><br>\n<table WIDTH="70%" border="2" cellpadding="5" bordercolor="#3399cc" bordercolordark="#000000"><tr><td><form NAME="REPORT_PROBLEM" method="post" enctype="text/plain" action="mailto:*@*.*?subject=' +
document.REPORT_PROBLEM.REF_NUM.value + ' Sev.' +the_selected+ '">\n<textarea type="hidden" name="newContent" cols="50" rows="17" wrap="soft"> Client: '
+ document.REPORT_PROBLEM.CLIENT_NAME.value + '\n Phone: (' +document.REPORT_PROBLEM.CLIENT_AREA_CODE.value+ ')' +document.REPORT_PROBLEM.CLIENT_PHONE.value+ ' Ext.' +document.REPORT_PROBLEM.CLIENT_EXTENSION.value+'\n RC Code: '
+document.REPORT_PROBLEM.CLIENT_RC_CODE.value+'\n Building: '
+document.REPORT_PROBLEM.CLIENT_BUILDING.value+ '\n Floor: '
+document.REPORT_PROBLEM.CLIENT_FLOOR.value+'\n Room: ' +document.REPORT_PROBLEM.CLIENT_ROOM_NUM.value+ '\n Street Address: ' +document.REPORT_PROBLEM.CLIENT_ADDRESS.value+'\n City: ' +document.REPORT_PROBLEM.CLIENT_CITY.value
+'\n Severity: ' +the_selected
+'\n Priority: ' +the_selected2
+'\n System / Application: ' +document.REPORT_PROBLEM.SYS_APP_NAME.value+'\n Detailed Desc.: '
+document.REPORT_PROBLEM.DETAILED_DESCRIPTION.value
+'\n Call Type: ' +the_selected3
+'\n Communication Log: ' +document.REPORT_PROBLEM.COMM_LOG.value+'\n Resolve Now: ' +the_selected4+ '\n Final Resolution: ' +document.REPORT_PROBLEM.INCIDENT_RESOLUTION.value+ '\n</textarea><br><br>\n<input class=CONTROL type="submit" value="submit">\n</form></td></tr></table></body></html>');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top