6.0.0-beta1
7/5/25

[#12015] Problems with japanese charset ( ISO-2022-JP )
Summary Problems with japanese charset ( ISO-2022-JP )
Queue IMP
Queue Version 6.0.3
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester aarno.sandvik (at) helsinki (dot) fi
Created 02/04/2013 (4534 days ago)
Due
Updated 02/05/2013 (4533 days ago)
Assigned 02/05/2013 (4533 days ago)
Resolved 02/05/2013 (4533 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/05/2013 06:24:10 PM Michael Slusarz Comment #9
State ⇒ Resolved
Reply to this comment
This was a problem with our XSS filter and will be fixed in version 
2.0.5 of the Horde_Text_Filter package.
02/05/2013 06:22:04 PM Git Commit Comment #8 Reply to this comment
Changes have been made in Git (master):

commit 0af57458e802cdc68f187295c3736c372c011a94
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Feb 5 11:18:52 2013 -0700

     [mms] Fix XSS filter removing control characters that cause 
certain charsets (ISO-2022-JP) to break (Bug #12015).

  .../Text_Filter/lib/Horde/Text/Filter/Xss.php      |   36 
--------------------
  framework/Text_Filter/package.xml                  |    4 +-
  .../Text_Filter/test/Horde/Text/Filter/XssTest.php |  Bin 23500 -> 
23372 bytes
  3 files changed, 2 insertions(+), 38 deletions(-)

http://git.horde.org/horde-git/-/commit/0af57458e802cdc68f187295c3736c372c011a94
02/05/2013 04:15:57 PM Michael Slusarz Comment #7 Reply to this comment
The text/plain message views fine.  It is only the text/html version 
that is having issues.
02/05/2013 10:15:54 AM Jan Schneider Comment #6
State ⇒ Assigned
Assigned to Michael Slusarz
Reply to this comment
Confirmed
02/05/2013 09:47:54 AM Jan Schneider Deleted Original Message
 
02/05/2013 09:43:55 AM aarno (dot) sandvik (at) helsinki (dot) fi Comment #5
New Attachment: source.eml Download
Reply to this comment
Second attempt.
02/05/2013 09:35:37 AM Jan Schneider Comment #4 Reply to this comment
Our Whups installation doesn't allow non-ascii file names, can you 
please upload again with an ascii filename?
02/05/2013 07:42:26 AM aarno (dot) sandvik (at) helsinki (dot) fi Comment #3
New Attachment: ???????.eml
Reply to this comment
Here's the source.
02/04/2013 10:54:00 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Please upload the full source of an example message.
02/04/2013 09:00:06 AM aarno (dot) sandvik (at) helsinki (dot) fi Comment #1
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Problems with japanese charset ( ISO-2022-JP )
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
IMP doesn't show some of the japanese messages correctly in basic or 
dynamic view. The text is somehow garbled in preview and message.php 
but shows correctly in reply- and forward-views.

Here's an example of a broken message as it's shown in IMP:

Content-Type: multipart/alternative; boundary=f46d0421a95b0e123a04d4e22c32
--f46d0421a95b0e123a04d4e22c32
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

$B%F%-%9%H!"$*$h(B

--f46d0421a95b0e123a04d4e22c32
Content-Type: text/html; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

<div dir="ltr">$B%F%-%9%H!"$*$h(B<br></div>

--f46d0421a95b0e123a04d4e22c32--


Here's the same message source as it's seen in thunderbird:

Content-Type: multipart/alternative; boundary=f46d0421a95b0e123a04d4e22c32

--f46d0421a95b0e123a04d4e22c32
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

???????

--f46d0421a95b0e123a04d4e22c32
Content-Type: text/html; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

<div dir="ltr">???????<br></div>

--f46d0421a95b0e123a04d4e22c32--

Saved Queries