6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/4/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11930] Horde_String::validUtf8 fails to validate valid UTF8
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__ .__..__ ._. | [__)| || \ | | [__)|__||__/_|_
Comment
>> From what i have seen if this function returns false the code >> strips all non 7 bit characters >> This works in english but strips the whole text in other >> languages.Maybe a less heavy handed approach is possible striping >> only offending characters and replacing with equal byte symbols by >> calling this logic . > > This is only true for ActiveSync. In ActiveSync, the stripping of non > 7 bit characters is a last ditch effort when we can't determine what > the encoding is. If we don't know what encoding the text is in, how > are we to know what equal byte symbols are? > > The reason we have to strip the non 7 bit characters is because if we > send invalid UTF-8 data over wbxml, it can completely break the sync > and even crash clients like iOS. Again, we only due this as a last > ditch effort when the incoming email contains inproper character > encoding information.
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