How to write Arabic in Perl source files?

I need to write Arabic words as shortcuts inside a file .pm. This does not work for me. I tried the letters ASCII and they worked. Is there a better way to do this?

I tried something like:

<span dir="rtl" lang="ar">&#1593;&#1585;&#1576;&#1610;</span>
+3
source share
1 answer
use utf8;

tells Perl that your program is written using utf-8 encoding. Do not use pragma encoding - it is broken.

+10
source

Source: https://habr.com/ru/post/1767321/


All Articles