FogBugz (Case [Issue]20313) Zinc - ZnEasy get fails with "ZnInvalidUTF8: Illegal leading byte for utf-8 encoding"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FogBugz (Case [Issue]20313) Zinc - ZnEasy get fails with "ZnInvalidUTF8: Illegal leading byte for utf-8 encoding"

Pharo Issue Tracker
FogBugz Notification
avatar
Bug in Project:  Zinc: 1. Pharo Image  •  You are subscribed to this case
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 Priority: 4 – Would be nice Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want FogBugz notifications anymore? Update your preferences.

FogBugz

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker