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 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> References: <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 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