6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/9/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
>> I got further. >> >> problem is coming from Domhtml.php. DOMDocument thinks that $text is >> iso-8859-1, but it is UTF-8 as it has been converted earlier on. >> >> The text message gets screwed after the following call (line 83) : >> $doc->loadHTML(Horde_String::convertCharset($text, >> $charset, $doc->encoding)); >> >> $charset = utf-8 >> $doc->encoding = iso-8859-1 > > 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. > > Maybe check what the value of $doc->encoding is AFTER line 83? Or > try creating a new DOMDocument object - e.g.: > > /* If libxml can't auto-detect encoding, convert to what it > * *thinks* the encoding should be. */ > $doc = new DOMDocument(); > $doc->loadHTML(Horde_String::convertCharset($text, > $charset, $doc->encoding));
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