|
I committed the following to Zinc #bleedingEdge: === Name: Zinc-Character-Encoding-Core-SvenVanCaekenberghe.52 Author: SvenVanCaekenberghe Time: 21 August 2017, 3:59:01.562616 pm UUID: 0ea82d9e-a513-0d00-a81e-871d00212907 Ancestors: Zinc-Character-Encoding-Core-SvenVanCaekenberghe.51
Add support to ZnUTF8Encoder tp read illegal UTF-8 encoded input data by making ZnInvalidUTF8 resumable and allow the insertion of a substitution character in the output (needless to say this is not recommended)
Add ZnCharacterEncoderTests>>#testUTF8ReadFaultyInput === Name: Zinc-Character-Encoding-Tests-SvenVanCaekenberghe.34 Author: SvenVanCaekenberghe Time: 21 August 2017, 3:59:20.113364 pm UUID: e6b7489f-a513-0d00-a81f-8e1c00212907 Ancestors: Zinc-Character-Encoding-Tests-SvenVanCaekenberghe.33
Add support to ZnUTF8Encoder tp read illegal UTF-8 encoded input data by making ZnInvalidUTF8 resumable and allow the insertion of a substitution character in the output (needless to say this is not recommended)
Add ZnCharacterEncoderTests>>#testUTF8ReadFaultyInput ===
If you load the above, you can do <code> [ ZnEasy get: 'http://www.officeholidays.com/countries/malaysia/index.php' ] on: ZnInvalidUTF8 do: [ :exception | exception resume ]. </code>
Question marks (?) will be inserted whenever UTF-8 errors occur when reading web pages, you won't be notified of errors.
Does this work for you ?
|
|
|
Priority: 4 – Would be nice
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Later
|
Go to Case
|
|