Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.20
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libjson-parse-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
array.pl
133
B
-rw-r--r--
assert.pl
231
B
-rw-r--r--
bad-utf8.pl
363
B
-rw-r--r--
bad-utf8.txt
376
B
-rw-r--r--
chr.pl
285
B
-rw-r--r--
collide.pl
223
B
-rw-r--r--
ebi.pl
229
B
-rw-r--r--
first-bit.pl
814
B
-rw-r--r--
hash.pl
132
B
-rw-r--r--
json-tiny-round-trip-demo.pl
1.16
KB
-rw-r--r--
kani.pl
313
B
-rw-r--r--
key-collision.pl
217
B
-rw-r--r--
long-number.pl
198
B
-rw-r--r--
sasori.pl
222
B
-rw-r--r--
synopsis.pl
186
B
-rw-r--r--
tokenize-synopsis.pl
629
B
-rwxr-xr-x
true-subs.pl
223
B
-rw-r--r--
unicode-details.pl
1.08
KB
-rw-r--r--
validjson
1.09
KB
-rwxr-xr-x
whitespace-synopsis.pl
410
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : unicode-details.pl
#!/usr/bin/perl use warnings; use strict; use JSON::Parse ':all'; use Unicode::UTF8 'decode_utf8'; binmode STDOUT, ":encoding(utf8)"; no utf8; my $highbytes = "か"; my $not_utf8 = "$highbytes\\u3042"; my $test = "{\"a\":\"$not_utf8\"}"; my $out = parse_json ($test); # JSON::Parse does something unusual here in promoting the first part # of the string into UTF-8. print "JSON::Parse gives this: ", $out->{a}, "\n"; # Perl cannot assume that $highbytes is in UTF-8, so it has to just # turn the initial characters into garbage. my $add_chr = $highbytes . chr (0x3042); print "Perl's output is like this: ", $add_chr, "\n"; # In fact JSON::Parse's behaviour is equivalent to this: my $equiv = decode_utf8 ($highbytes) . chr (0x3042); print "JSON::Parse did something like this: ", $equiv, "\n"; # With character strings switched on, Perl and JSON::Parse do the same # thing. use utf8; my $is_utf8 = "か"; my $test2 = "{\"a\":\"$is_utf8\\u3042\"}"; my $out2 = parse_json ($test2); print "JSON::Parse: ", $out2->{a}, "\n"; my $add_chr2 = $is_utf8 . chr (0x3042); print "Native Perl: ", $add_chr2, "\n";
Close