6.0.0-alpha14
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
6/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9567] charset pb replying to message
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. ..__..__. __. |\/||\/|| || |(__ | || ||__||__|.__)
Comment
>> So what you are saying is that BEFORE line 83, $charset is utf-8 and >> $doc->encoding is iso-8859-1? If that is the case, I don't see why >> this isn't working... we are converting $text to ISO-8859-1 (from >> UTF-8) and then sending to loadHTML. So things should be fine. > > I got mislead with editors charset. Depending on which one I was > using (vi, nedit) I wasn't getting (seeing) the same output, and I > just realised that now. > > So, this got me up to framework/Text_Filter/lib/Horde/Text/Filter/Xss.php > > I've attached the log patch and horde log file. The log file is trace > of replying to the message. > > It looks like dom->saveXML returns UTF-8 characters. > > If I change the last 'return' of function postProcess($text) like this > - return Horde_String::convertCharset($text, $dom->encoding, > $this->_params['charset']); > + return $text; > > Then accents look Ok! >
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