Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.1
-
None
-
Windows 10, en_US locale, experimental UTF-8 support not enabled
Description
QTextCodec::codecForLocale()->canEncode(string) seems to return `true` for any string I can give it, even those that it obviously fails to encode.
This seems to work properly for every other codec I tried.
I wouldn't be shocked if this impossible to handle correctly due to the way codecForLocale() has to be implemented on Windows, but if that's the case, it probably warrants a warning somewhere in the documentation.
Attachments
Issue Links
- relates to
-
QTBUG-83081 QTextCodec::canEncode does not work for ICU conversions
- Closed