Solved

ENCTYPE text/plain and umlauts

Posted on 2004-10-22
389 Views
Last Modified: 2012-05-05
I'm having trouble with umlauts in mailto form script. Using ENCTYPE = "text/plain" the
umlauts are corrupted. Is there a workaround?
0
Question by:larsan
    6 Comments
     
    LVL 8

    Accepted Solution

    by:
    The following worked fine for me in Internet Explorer, but not in Firefox/Mozilla:

    <?xml version="1.0" encoding="iso-8859-1"?>
    ...
    <a href="mailto:heinz_m&uuml;ller@m&uuml;ller_familie.net">heinz_m&uuml;ller@m&uuml;ller_familie.net</a>
    or
    <a href="mailto:heinz_m&#252;ller@m&#252;ller_familie.net">heinz_m&#252;ller@m&#252;ller_familie.net</a>

    Of course, for that the file needs to be stored in the above encoding (ANSI).

    I played around with different encodings, but non helped. Your's is the second post today about form submission using mailto: ... this is really not the way to go and if you have any chance of being able to avoid this, you should try to find a better solution based on dynamic form handling posted back to the server.

    If you post a snippet of your code, maybe there is something in it that I might be able to help you with.
    0
     
    LVL 25

    Expert Comment

    by:devic
    <a href="mailto:heinz_m%FCller%40m%FCller_familie.net">heinz_m&uuml;ller@m&uuml;ller_familie.net</a>
    0
     

    Author Comment

    by:larsan
    Thanks!
    0
     
    LVL 8

    Expert Comment

    by:sigmacon
    If at all still possible, the author of this question (larsan) should at least split the points between me and devic and don't give them all to me. My solution only works from Internet Explorer, and probably nowhere else. Reading devic's comment made me go DOH!! - it's a URL, stupid. His url-save-encoding of the email address is the right way to do it.
    0
     
    LVL 25

    Expert Comment

    by:devic
    thank you sigmacon, np I have enough points ;)
    0
     
    LVL 8

    Expert Comment

    by:sigmacon
    ... [speechless while staring at the number] ... wow, that's impressive ... great work, man  ... :-)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    A common challenge, or question, when working with two calendar dates is: What is the difference between the specified days? As is frequently the case, the answer is: It depends... What kind of difference do you want? Given two date obje…
    The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    846 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

    9 Experts available now in Live!

    Get 1:1 Help Now