Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.3
-
None
-
b3922d06680c04324cecd0e0219d02c52b8cf7fd
Description
At QUrl::fromUserInput documentation:
http://doc.qt.nokia.com/4.7/qurl.html#fromUserInput
It is explained:
"
...
Tips to avoid erroneous character conversion when dealing with URLs and strings:
- When creating an URL QString from a QByteArray or a char*, always use QString::fromUtf8().
- Favor the use of QUrl::fromEncoded() and QUrl::toEncoded() instead of QUrl(string) and QUrl::toString() when converting QUrl to/from string.
...
"
This is important enough to be in the "Detailed Description" section:
http://doc.qt.nokia.com/4.7/qurl.html#details
instead of its current place.