Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Arabic to Hex and Hex to Arabic

by Your Mother (Bishop)
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), $/;

Replies are listed 'Best First'.
Re^2: Arabic to Hex and Hex to Arabic
by thanos1983 (Vicar) 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?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2018-06-19 05:21 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.