6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/21/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5972] MIME encoding of multibyte JP characters
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..__ . .. . . | |[__)\ /| |\ | |__\[__) \/ |___| \|
Comment
>>> I've search the net and get a solution. > >>> This code works for me both php-4.4 and php5.1. > >>> Line-folding OK too. > >>> > >>> function mbencode ($text,$charset) > >>> { > >>> $sav_enc = mb_internal_encoding(); > >>> mb_internal_encoding($charset); > >>> $ret = mb_encode_mimeheader($text,$charset,'B'); > >>> mb_internal_encoding($sav_enc); > >>> return $ret; > >>> } > >> > >> Please read the previous comments. I already said > >> mb_encode_mimeheader() works when using multibyte charsets. The > >> problem is that mb_encode_mimeheader() doesn't properly work for > >> non-multibyte charsets. > > > > Sorry confusion. My point is that mb_encode_mimeheader() doesn't work well > > without calling mb_internal_encoding(). > > > > Attached file is my japanese-aware patch for horde-3.1.5 and imp-4.1.5.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers