On 8/28/18 9:38 AM, spikespaz wrote:
I have a user who submitted a bug report for one of my projects. The
error is in std\encoding.d on line 2554.
The problem arises when he types "google.com.hk/search?q={{query}}"
(exact string) into this function:
https://github.com/spikespaz/search-deflector/blob/master/source/setup.d#L253-L278
Here is the issue on GH:
https://github.com/spikespaz/search-deflector/issues/12
I really can't figure this one out and any help would be appreciated.
Thanks.
The answer is: the encoding "big5" isn't supported by std.encoding.
You can add a new subclass and register it, to handle the encoding.
Maybe this article can help you write one:
https://en.wikipedia.org/wiki/Big5
You want to subclass EncodingScheme. See instructions at the top of
https://dlang.org/phobos/std_encoding.html
-Steve