ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
#50089 [Opn]: quoted_printable_encode incorrect
by Susafon At Seznam Dot Cz other posts by this author
Nov 5 2009 7:38AM messages near this date
#50089 [Opn->Fbk]: quoted_printable_encode incorrect | [PHP-DEV] Feedback requested on using #defines to improve the performance of the TSRMG macro
ID:               50089
 User updated by:  susafon at seznam dot cz
 Reported By:      susafon at seznam dot cz
 Status:           Open
 Bug Type:         *Encryption and hash functions
 Operating System: Windows XP
 PHP Version:      5.3.0
 New Comment:

Proper location of the error is at the end of the string reported in
Actual result: "=o=20katal=C3=B3gu!?=". The first sign "=" of this
ending is not supposed to be there


Previous Comments:
------------------------------------------------------------------------

[2009-11-05 15:13:36] susafon at seznam dot cz

Description:
------------
The function quoted_printable_encode returns string incorrectly.
Input string is plain text. The function generate errors if the length
of the string is longer.

Reproduce code:
---------------
quoted_printable_encode($_POST['not_encoded'])

Expected result:
----------------
original string:
"Objavte novinky a vianočn� tipy z n��ho najnov�ieho katal�gu!"

returned string:
"=?utf-8?Q?Objavte=20novinky=20a=20viano=C4=8Dn=C3=A9=20tipy=20z=20n=C3=A1=C5=A1ho=20najnov=
C5=A1ieho=20katal=C3=B3gu!?="

Actual result:
--------------
original string:
"Objavte novinky a vianočn� tipy z n��ho najnov�ieho katal�gu!"

returned string:
"=?utf-8?Q?Objavte=20novinky=20a=20viano=C4=8Dn=C3=A9=20tipy=20z=20n=C3=A1=C5=A1ho=20najnov=
C5=A1ieh=o=20katal=C3=B3gu!?="
                      ^
                      |
sign "=" does not ____|
suppose be there 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50089&edit=1
Thread:
Susafon At Seznam Dot Cz
jani
Susafon At Seznam Dot Cz

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved