Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28573

Re: javax.mail sends mail with broken charset

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From Lars Enderin <lars.enderin@telia.com>
Newsgroups comp.lang.java.programmer
Subject Re: javax.mail sends mail with broken charset
Date Wed, 28 May 2014 11:24:05 +0200
Organization albasani.net
Lines 38
Message-ID <5385AB35.2050209@telia.com> (permalink)
References <lm3vnf$cr9$1@news.m-online.net> <5385A8AE.4050206@telia.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 8bit
X-Trace news.albasani.net TaIvL+H5PHQQ6veE8cQjHfF/lILFLFefiwIkzkXjyQvHvKT2beAHztrZRpN810hMz6GMKuN9bL0AzkSdvEhJ4iGsLFDhGTatcdkbMKtPh+lcUxhMCYVYa51oUU2KOyne
NNTP-Posting-Date Wed, 28 May 2014 09:24:13 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="7VZosdD7mFhRLCOk9CeJ4JBIFDgpbebWB3AUACiPpwy7wyMGV0lgLXDyW1KOELFRXZ90N21yQKYoAJO5Hu9DOjkKVbFw9i3/zR4peyGGSD/esS1EyBlUsO29LUJ8ZvDA"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
In-Reply-To <5385A8AE.4050206@telia.com>
Cancel-Lock sha1:9NeXpsrr6kJZFqTjaRzq6EA2nTQ=
Xref csiph.com comp.lang.java.programmer:28573

Show key headers only | View raw


2014-05-28 11:13, Lars Enderin skrev:
> 2014-05-28 08:30, Laura Schmidt skrev:
>> Hello,
>>
>> I send mail with javax.mail and I noticed that some special chars are
>> broken.
>>
>> I am using UTF-8 on my development system, where the mail generating
>> code is produced. The received mail also contains "charset=UTF-8".
>>
>> But it's broken. The string "äß" is delivered as "=E4=DF" ( see below).
>>
>> How can I fix this?
>>
>> Laura
>>
>>
>> Message-ID:
>> <13382290.1.1401258077688.JavaMail.tomcat7@h1403230.stratoserver.net>
>> Subject: Test
>> MIME-Version: 1.0
>> Content-Type: text/plain; charset=UTF-8
>> Content-Transfer-Encoding: quoted-printable
>> Date: Wed, 28 May 2014 08:21:17 +0200 (CEST)
>>
>> Test: =E4=DF
>>
> 
> Did you intend to send the two characters "äß", i e LATIN SMALL LETTER A
> WITH TILDE, and LATIN CAPITAL LETTER SHARP S? These are iso-8859-1
> characters, correctly encoded as "=E4=DF" in quoted-printable. It seems
> to be an interpretation error at the receiving end.
> 
Or you have actually sent the two characters as iso-8859-1, despite the
header. Could you change to 8-bit instead of quoted-printable?

-- 
Lars Enderin

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

javax.mail sends mail with broken charset Laura Schmidt <ls@mailinator.com> - 2014-05-28 08:30 +0200
  Re: javax.mail sends mail with broken charset Lars Enderin <lars.enderin@telia.com> - 2014-05-28 11:13 +0200
    Re: javax.mail sends mail with broken charset Lars Enderin <lars.enderin@telia.com> - 2014-05-28 11:24 +0200
    Re: javax.mail sends mail with broken charset Joerg Meier <joergmmeier@arcor.de> - 2014-05-29 12:55 +0200
  Re: javax.mail sends mail with broken charset Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-05-28 09:01 -0500
  Re: javax.mail sends mail with broken charset Laura Schmidt <ls@mailinator.com> - 2014-05-29 09:19 +0200
    Re: javax.mail sends mail with broken charset Laura Schmidt <ls@mailinator.com> - 2014-05-29 09:35 +0200
      Re: javax.mail sends mail with broken charset Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-05-29 09:48 +0000
      Re: javax.mail sends mail with broken charset Lars Enderin <lars.enderin@telia.com> - 2014-05-29 11:56 +0200
      Re: javax.mail sends mail with broken charset Laura Schmidt <ls@mailinator.com> - 2014-05-30 12:16 +0200
        Re: javax.mail sends mail with broken charset Lars Enderin <lars.enderin@telia.com> - 2014-05-30 13:22 +0200
          Re: javax.mail sends mail with broken charset Lars Enderin <lars.enderin@telia.com> - 2014-05-30 20:01 +0200
  Re: javax.mail sends mail with broken charset Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-05-29 09:43 +0000
  Re: javax.mail sends mail with broken charset Roedy Green <see_website@mindprod.com.invalid> - 2014-05-29 15:31 -0700

csiph-web