Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Arabic to Hex and Hex to Arabic

by Your Mother (Chancellor)
on Jul 28, 2017 at 17:25 UTC ( #1196225=note: print w/replies, xml ) Need Help??


in reply to Arabic to Hex and Hex to Arabic

It looks like you got it worked out to where you understand the issues but it sounds like an XY problem. Is this just a learning exercise or do you have some kind of requirements? Here is a simplistic, related tangent that arrives at the same hex values–

#!/usr/bin/env perl
use utf8;
use strict;
use warnings;
use HTML::Entities "encode_entities";
my $arabic = "ﻟﻠﺒﻴﻊ"; # "For sale"

print encode_entities($arabic), $/;
__END__
ﻟﻠﺒﻴﻊ

Replies are listed 'Best First'.
Re^2: Arabic to Hex and Hex to Arabic
by thanos1983 (Priest) on Jul 29, 2017 at 15:57 UTC

    Hello Your Mother,

    Thanks for the reply, I saw this possible solution somewhere but I did not spend the time to apply it.

    Well in my case it is exactly the problem that I have and what I wanted to resolve. I am working for a telecommunications company and I wanted to debug / troubleshoot the problem of a customer. So I wanted exactly this :D

    Thank you for your time and effort again. :D

    Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1196225]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2017-12-11 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (286 votes). Check out past polls.

    Notices?