note 34527 added to function.mb-encode-mimeheader
| From: | gullevek at gullevek dot org | Date: | Wed, 30 Jul 2003 00:37:40 +0000 |
| Subject: | note 34527 added to function.mb-encode-mimeheader | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52977@lists.php.net to get a copy of this message | ||
this function is broken with ISO-2022-JP (I have not tested with others, but 100% with this
encoding).
If the string has a multibyte character exact at the position where the MIME string gets broken into
the next line, this kanji and all after are in mojibake (broken japanese). if you play around with a
single byte character exactle at the place where the linebreak comes, everything is fine.
I just want to warn everyone.
the solution is to insert a whitespace after either 36 single byte or 18 multibyte characters (use
the mb_strimwidth function eg).
this might get the subject look strange, but at least it doesn't get garbled
----
Manual Page -- http://www.php.net/manual/en/function.mb-encode-mimeheader.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34527
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34527&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34527&report=yes