githelper.git/
githelper.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2016-02-07
2016-02-07 00:35:33 by Chris Angelico <rosuav@gmail.com>
aca38767597264c3f83dcf0c08188fc28a6ae568 (
5
lines) (+
5
/-
0
)
[
Show
|
Annotate
]
Branch:
master
Support both 8.1 and 7.8
150:
if(is_encoding_utf8(encoding)) encoding = "UTF-8"; mixed err = catch {
+
#if constant(Charset)
+
Charset.Decoder decoder = Charset.decoder(encoding);
+
#else
Locale.Charset.Decoder decoder = Locale.Charset.decoder(encoding);
-
+
#endif
foreach(Array.uniq(values(decoder->feed(data)->drain())), int c) switch(c) { case 0xfffd: